Shamik commited on
Commit
13ce9d3
·
verified ·
1 Parent(s): fe550a4

fix: commenting nestasyncio.

Browse files
Files changed (1) hide show
  1. universal_agent.py +2 -2
universal_agent.py CHANGED
@@ -21,9 +21,10 @@ from smolagents import (
21
  VisitWebpageTool,
22
  WikipediaSearchTool,
23
  )
 
24
 
25
  _ = load_dotenv(dotenv_path=find_dotenv(raise_error_if_not_found=False), override=True)
26
- nest_asyncio.apply()
27
  with open("all_questions.pkl", "rb") as f:
28
  all_questions = pickle.load(f)
29
  lang_model = init_chat_model(
@@ -31,7 +32,6 @@ lang_model = init_chat_model(
31
  )
32
 
33
 
34
- # lang_model = init_chat_model(model="gpt-4.1-mini", model_provider="openai",temperature=0)
35
  def search_wikipedia(query: str) -> str:
36
  """Tries to search for a wikipedia page relevant to the query and if it finds
37
  then it returns the content of this page."""
 
21
  VisitWebpageTool,
22
  WikipediaSearchTool,
23
  )
24
+ # import nest_asyncio
25
 
26
  _ = load_dotenv(dotenv_path=find_dotenv(raise_error_if_not_found=False), override=True)
27
+ # nest_asyncio.apply()
28
  with open("all_questions.pkl", "rb") as f:
29
  all_questions = pickle.load(f)
30
  lang_model = init_chat_model(
 
32
  )
33
 
34
 
 
35
  def search_wikipedia(query: str) -> str:
36
  """Tries to search for a wikipedia page relevant to the query and if it finds
37
  then it returns the content of this page."""