ghengx
init
7b84eb4
raw
history blame contribute delete
475 Bytes
import os
from dataset_loader import load_dataset
if not os.path.isdir('agent_function'):
load_dataset()
import gradio as gr
from agent_function.agent import Agent
iface = gr.Interface(
fn=Agent().ask,
inputs=gr.components.Textbox(lines=7, label="Enter your text"),
outputs="text",
title="E-commerce Recommendation for baby product",
description="""Just type what you want and it will recommend the item for you."""
)
iface.launch(share=False)