File size: 307 Bytes
b2b87f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import gradio as gr
def chatbot_query(query):
response = query_engine.query(query)
return response
face = gr.Interface(
fn=chatbot_query,
inputs=gr.Textbox(prompt="Ask me anything:"),
outputs=gr.Textbox(),
live= False,
capture_session=True,
theme="compact"
)
face.launch() |