MickyWin22 commited on
Commit
69f944a
·
verified ·
1 Parent(s): 81388a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -47,6 +47,9 @@ class GaiaSmolAgent:
47
  if not api_key:
48
  raise ValueError("API key 'GROQ_API_KEY' not found in environment secrets.")
49
 
 
 
 
50
  self.planner_model = LiteLLMModel(
51
  # Using Llama 3 8B via Groq's free API
52
  model_id="groq/llama3-8b-8192",
@@ -172,7 +175,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
172
 
173
  # Add a delay to avoid hitting the API rate limit.
174
  print("Pausing for 3 seconds to respect API rate limits...")
175
- time.sleep(3)
176
 
177
  if not answers_payload:
178
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
 
47
  if not api_key:
48
  raise ValueError("API key 'GROQ_API_KEY' not found in environment secrets.")
49
 
50
+ #model = InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct", provider="together")
51
+
52
+
53
  self.planner_model = LiteLLMModel(
54
  # Using Llama 3 8B via Groq's free API
55
  model_id="groq/llama3-8b-8192",
 
175
 
176
  # Add a delay to avoid hitting the API rate limit.
177
  print("Pausing for 3 seconds to respect API rate limits...")
178
+ time.sleep(20)
179
 
180
  if not answers_payload:
181
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)