File size: 368 Bytes
10e9b7d 2d191ed 10e9b7d e80aab9 2d191ed 4021bf3 3c4371f 2d191ed 3c4371f e80aab9 2d191ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import gradio as gr
from agent import agent
def run(task):
return agent(task)
demo = gr.Interface(
fn=run,
inputs=gr.Textbox(label="Ask a question"),
outputs=gr.Textbox(label="Answer"),
title="Simple HF Agent",
description="Stable baseline agent (no router, no smolagents)"
)
demo.launch(
server_name="0.0.0.0",
server_port=7860
) |