bruktawit's picture
Update app.py
626952f verified
raw
history blame contribute delete
377 Bytes
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()