Spaces:
Runtime error
Runtime error
File size: 377 Bytes
edcc7f6 626952f edcc7f6 626952f 78c7e17 edcc7f6 78c7e17 626952f 78c7e17 edcc7f6 40e566c edcc7f6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import sys
sys.path.append('./smolagents') # π Updated folder name
from agent import SmolAgent # π Updated import based on smolagents/agent.py
import gradio as gr
agent = SmolAgent(...) # Fill in required config or params
def run_agent(input_text):
return agent.run(input_text)
iface = gr.Interface(fn=run_agent, inputs="text", outputs="text")
iface.launch()
|