jassi004's picture
Upload 2 files
8847ce3 verified
raw
history blame
613 Bytes
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()