cowrycode commited on
Commit
4f67800
·
verified ·
1 Parent(s): c5060b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=self.api_key,
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=self.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