Update app.py
Browse files46 unmodified lines474849505152119 unmodified lines17217317417517617717846 unmodified linesif not api_key:raise ValueError("API key 'GROQ_API_KEY' not found in environment secrets.")self.planner_model = LiteLLMModel(# Using Llama 3 8B via Groq's free APImodel_id="groq/llama3-8b-8192",119 unmodified lines# Add a delay to avoid hitting the API rate limit.print("Pausing for 3 seconds to respect API rate limits...")time.sleep(3)if not answers_payload:return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)46 unmodified lines474849505152535455119 unmodified lines17517617717817918018146 unmodified linesif not api_key:raise ValueError("API key 'GROQ_API_KEY' not found in environment secrets.")#model = InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct", provider="together")self.planner_model = LiteLLMModel(# Using Llama 3 8B via Groq's free APImodel_id="groq/llama3-8b-8192",119 unmodified lines# Add a delay to avoid hitting the API rate limit.print("Pausing for 3 seconds to respect API rate limits...")time.sleep(20)if not answers_payload:return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
app.py+4-1