Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ print("BasicAgent initialized.")
|
|
| 60 |
api_key = os.getenv("HF_TOKEN")
|
| 61 |
llm = HuggingFaceInferenceAPI(
|
| 62 |
model_name="deepseek-ai/DeepSeek-R1-0528",
|
| 63 |
-
token=
|
| 64 |
provider="auto",
|
| 65 |
max_iterations=10,
|
| 66 |
max_execution_time=60
|
|
@@ -68,7 +68,7 @@ llm = HuggingFaceInferenceAPI(
|
|
| 68 |
agent = AgentWorkflow.from_tools_or_functions(
|
| 69 |
[wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool,
|
| 70 |
round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool],
|
| 71 |
-
llm=
|
| 72 |
)
|
| 73 |
|
| 74 |
# END MY CODE
|
|
|
|
| 60 |
api_key = os.getenv("HF_TOKEN")
|
| 61 |
llm = HuggingFaceInferenceAPI(
|
| 62 |
model_name="deepseek-ai/DeepSeek-R1-0528",
|
| 63 |
+
token=api_key,
|
| 64 |
provider="auto",
|
| 65 |
max_iterations=10,
|
| 66 |
max_execution_time=60
|
|
|
|
| 68 |
agent = AgentWorkflow.from_tools_or_functions(
|
| 69 |
[wikipedia_search_tool, youtube_transcript_tool, youtube_transcript_snippet_tool,
|
| 70 |
round_to_two_decimals_tool, text_inverter_tool, google_web_search_tool],
|
| 71 |
+
llm=llm
|
| 72 |
)
|
| 73 |
|
| 74 |
# END MY CODE
|