File size: 613 Bytes
8847ce3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
from agent import run_agent
examples = [
"What's the capital of France?",
"Solve: 345 * 12",
"Write a Python function to reverse a list.",
"What's the square root of 169?",
"Who discovered penicillin?"
]
def ask_agent(input_text):
return run_agent(input_text)
iface = gr.Interface(fn=ask_agent,
inputs="text",
outputs="text",
title="Final Assignment Agent",
description="Enter your question and the agent will answer it.",
examples=examples)
iface.launch()
|