chattingMachine / app.py
julicq's picture
Update app.py
d685ec9
raw
history blame contribute delete
323 Bytes
import gradio as gr
import chatter
prompt_input = gr.Textbox(label="Prompt")
response_output = gr.Textbox(label="Response")
def chatbot_interface(prompt):
response = chatter.answer(prompt)
return response
iface = gr.Interface(fn=chatbot_interface, inputs=prompt_input, outputs=response_output)
iface.launch()