ORromu commited on
Commit
583c360
·
verified ·
1 Parent(s): 5df7ad9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
 
6
  from smolagents import CodeAgent, OpenAIServerModel, DuckDuckGoSearchTool, WikipediaSearchTool
7
  from smolagents.agents import PromptTemplates
8
 
@@ -31,6 +32,7 @@ class BasicAgent:
31
  print("BasicAgent initialized.")
32
  def __call__(self, question: str) -> str:
33
  print(f"Agent received question (first 50 chars): {question[:50]}...")
 
34
  question = question + """The final answer must follow these strict formatting rules:
35
  If the answer is a number, use digits only, no commas or units (e.g., use 10450 not 10,450 or $10,450).
36
  If the answer is a string, write it in plain text with:
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ import time
7
  from smolagents import CodeAgent, OpenAIServerModel, DuckDuckGoSearchTool, WikipediaSearchTool
8
  from smolagents.agents import PromptTemplates
9
 
 
32
  print("BasicAgent initialized.")
33
  def __call__(self, question: str) -> str:
34
  print(f"Agent received question (first 50 chars): {question[:50]}...")
35
+ time.sleep(60)
36
  question = question + """The final answer must follow these strict formatting rules:
37
  If the answer is a number, use digits only, no commas or units (e.g., use 10450 not 10,450 or $10,450).
38
  If the answer is a string, write it in plain text with: