Satyanjay's picture
Upload 4 files
8ef6e64 verified
raw
history blame contribute delete
359 Bytes
import gradio as gr
from agent import create_agent
agent = create_agent()
def chatbot(query):
return agent.run(query)
iface = gr.Interface(
fn=chatbot,
inputs="text",
outputs="text",
title="Investment Advisor Agent",
description="Ask about SIP, returns, portfolio allocation, etc."
)
if __name__ == "__main__":
iface.launch()