Spaces:
Sleeping
Sleeping
| 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() |