Sonu313131 commited on
Commit
999e116
·
verified ·
1 Parent(s): 407d392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
  #hi
7
- from smolagents import ToolCallingAgent, InferenceClientModel
8
  from smolagents import DuckDuckGoSearchTool
9
 
10
  from smolagents import Tool
@@ -38,7 +38,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
38
  try:
39
  agent = CodeAgent(
40
  tools=[DuckDuckGoSearchTool()],
41
- model=InferenceClientModel("mistralai/Mistral-7B-Instruct-v0.3"),
42
  max_steps=5,
43
  verbosity_level=2
44
  )
 
4
  import inspect
5
  import pandas as pd
6
  #hi
7
+ from smolagents import ToolCallingAgent, InferenceClientModel, HfApiModel
8
  from smolagents import DuckDuckGoSearchTool
9
 
10
  from smolagents import Tool
 
38
  try:
39
  agent = CodeAgent(
40
  tools=[DuckDuckGoSearchTool()],
41
+ model=HfApiModel("mistralai/Mistral-7B-Instruct-v0.3"),
42
  max_steps=5,
43
  verbosity_level=2
44
  )