Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
import gradio as gr
|
4 |
-
from smolagents import CodeAgent,
|
|
|
5 |
|
6 |
# Build agent
|
7 |
agent = CodeAgent(
|
8 |
-
tools=[
|
9 |
-
model=HfApiModel(model="HuggingFaceH4/zephyr-7b-alpha")
|
10 |
)
|
11 |
|
12 |
# Function
|
|
|
1 |
+
# app.py
|
2 |
+
|
3 |
import gradio as gr
|
4 |
+
from smolagents import CodeAgent, HfApiModel
|
5 |
+
from smolagents.tools import PythonCodeInterpreter
|
6 |
|
7 |
# Build agent
|
8 |
agent = CodeAgent(
|
9 |
+
tools=[PythonCodeInterpreter()],
|
10 |
+
model=HfApiModel(model="HuggingFaceH4/zephyr-7b-alpha") # works on free CPU Space
|
11 |
)
|
12 |
|
13 |
# Function
|