lukmanaj commited on
Commit
d3b8653
·
verified ·
1 Parent(s): 530fdae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -193,6 +193,7 @@ class BasicAgent:
193
  config=generation_config
194
  )
195
  answer = response.text
 
196
  return answer
197
  except Exception as e:
198
  return f"Error during Gemini call: {str(e)}"
@@ -202,7 +203,6 @@ class BasicAgent:
202
  print(f"Running agent for task: {question[:50]}...")
203
  try:
204
  result = self.agent.run(question)
205
- time.sleep(7) # Respect rate limits
206
  return result
207
  except Exception as e:
208
  return f"Error running agent: {str(e)}"
 
193
  config=generation_config
194
  )
195
  answer = response.text
196
+ time.sleep(7)
197
  return answer
198
  except Exception as e:
199
  return f"Error during Gemini call: {str(e)}"
 
203
  print(f"Running agent for task: {question[:50]}...")
204
  try:
205
  result = self.agent.run(question)
 
206
  return result
207
  except Exception as e:
208
  return f"Error running agent: {str(e)}"