Skip to content

Commit

Permalink
🐛 fix: fixed the build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyz0918 committed Jun 4, 2024
1 parent 4c56763 commit 514bd1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions agent/integration/huggingface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import huggingface_hub as hf
from huggingface_hub import HfApi, ModelFilter


def download_readme(model_id):
"""
Download the README of the specified model.
Expand All @@ -12,6 +8,7 @@ def download_readme(model_id):
Returns:
str: The README content of the specified model.
"""
import huggingface_hub as hf
try:
file_path = hf.hf_hub_download(model_id, 'README.md')
with open(file_path, 'r', encoding='utf-8') as file:
Expand Down Expand Up @@ -41,6 +38,8 @@ def get_top_downloaded_models(
Returns:
list: A list of the top-downloaded model ids.
"""

from huggingface_hub import HfApi, ModelFilter
api = HfApi()

try:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ tinydb
pyyaml
uvicorn
fastapi
requests
questionary
prompt_toolkit
pandas~=2.2.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def readme():
]
},
package_data={
'steps': ['agent/templates/*.yml']
'steps': ['agent/hub/*.yml']
},
zip_safe=False,
include_package_data=True,
Expand Down

0 comments on commit 514bd1c

Please sign in to comment.