Spaces:
Build error
Build error
Commit
·
d7c892b
1
Parent(s):
5d73b20
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,4 +75,11 @@ def reset_conversation(api_key):
|
|
| 75 |
inputs_chat = gr.inputs.Textbox(lines=2, placeholder='Enter your question here')
|
| 76 |
iface_chat = gr.Interface(fn=ask_joe,
|
| 77 |
inputs=[gr.inputs.Textbox(label="OpenAI API Key"), inputs_chat],
|
| 78 |
-
outputs=gr.outputs.Textbox(label="Joe's Response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
inputs_chat = gr.inputs.Textbox(lines=2, placeholder='Enter your question here')
|
| 76 |
iface_chat = gr.Interface(fn=ask_joe,
|
| 77 |
inputs=[gr.inputs.Textbox(label="OpenAI API Key"), inputs_chat],
|
| 78 |
+
outputs=gr.outputs.Textbox(label="Joe's Response"))
|
| 79 |
+
|
| 80 |
+
iface_reset = gr.Interface(fn=reset_conversation,
|
| 81 |
+
inputs=gr.inputs.Textbox(label="OpenAI API Key"),
|
| 82 |
+
outputs=gr.outputs.Textbox(label="Reset Status"))
|
| 83 |
+
|
| 84 |
+
iface_chat.launch()
|
| 85 |
+
iface_reset.launch()
|