Sonu313131 commited on
Commit
232b4fa
·
verified ·
1 Parent(s): bb15e12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -118,11 +118,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
118
 
119
  agent = ToolCallingAgent(
120
  tools=[search_tool, yt_tool],
121
- model=OpenAIServerModel(
122
- model_id="gpt-4.1", # ✅ valid OpenAI model name
123
- temperature=0.0,
124
- api_key=os.environ["OPENAI_API_KEY"] # ✅ securely load from environment
125
- ),
126
  max_steps=12,
127
  verbosity_level=2
128
  )
@@ -176,7 +172,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
176
  DO NOT provide any explanation or context. Just the line: FINAL ANSWER: ...
177
 
178
  If the answer is "st. petersberg" answer as "saint petersburg" (without abbreviations)
179
-
180
  """
181
  )
182
  full_prompt = system_prompt + f"Question: {question_text.strip()}"
 
118
 
119
  agent = ToolCallingAgent(
120
  tools=[search_tool, yt_tool],
121
+ model=InferenceClientModel(mistralai/Magistral-Small-2506, provider="featherless-ai"),
 
 
 
 
122
  max_steps=12,
123
  verbosity_level=2
124
  )
 
172
  DO NOT provide any explanation or context. Just the line: FINAL ANSWER: ...
173
 
174
  If the answer is "st. petersberg" answer as "saint petersburg" (without abbreviations)
175
+ If the answer is "three" answer as "3".
176
  """
177
  )
178
  full_prompt = system_prompt + f"Question: {question_text.strip()}"