Update app.py
Browse files
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=
|
| 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 |
)
|