Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- main.py +1 -1
- requirements.txt +1 -1
main.py
CHANGED
@@ -130,7 +130,7 @@ def get_file_from_space(space_id: str, file_path: str) -> str:
|
|
130 |
model = InferenceClientModel()
|
131 |
agent = CodeAgent(
|
132 |
tools=[leaderboard_search, get_space_content, get_file_from_space],
|
133 |
-
additional_authorized_imports=["json", "requests"],
|
134 |
model=model,
|
135 |
add_base_tools=False,
|
136 |
description="Your job is to find the best possible model for a given task based on relevant leaderboards or arenas. You will be provided with a task description, and you should use the leaderboard tool to find relevant leaderboards or arenas. If you want to inspect the contents of a particular Space (e.g., README or code), use the space_content_tool. Respond with a list of the top models, including their names, scores, and links to their leaderboard pages.",
|
|
|
130 |
model = InferenceClientModel()
|
131 |
agent = CodeAgent(
|
132 |
tools=[leaderboard_search, get_space_content, get_file_from_space],
|
133 |
+
additional_authorized_imports=["json", "requests", "pandas"],
|
134 |
model=model,
|
135 |
add_base_tools=False,
|
136 |
description="Your job is to find the best possible model for a given task based on relevant leaderboards or arenas. You will be provided with a task description, and you should use the leaderboard tool to find relevant leaderboards or arenas. If you want to inspect the contents of a particular Space (e.g., README or code), use the space_content_tool. Respond with a list of the top models, including their names, scores, and links to their leaderboard pages.",
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
smolagents
|
2 |
huggingface_hub
|
3 |
-
gradio
|
|
|
1 |
smolagents
|
2 |
huggingface_hub
|
3 |
+
gradio<=4.9.0
|