Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def chatbot_interface(prompt):
|
4 |
-
response = answer(prompt)
|
5 |
return response
|
6 |
|
7 |
iface = gr.Interface(fn=chatbot_interface, inputs=prompt_input, outputs=response_output)
|
|
|
1 |
import gradio as gr
|
2 |
+
import chatter
|
3 |
+
|
4 |
+
prompt_input = gr.Textbox(label="Prompt")
|
5 |
+
response_output = gr.Textbox(label="Response")
|
6 |
|
7 |
def chatbot_interface(prompt):
|
8 |
+
response = chatter.answer(prompt)
|
9 |
return response
|
10 |
|
11 |
iface = gr.Interface(fn=chatbot_interface, inputs=prompt_input, outputs=response_output)
|