Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,14 +37,15 @@ def openai_chatbot(message, history=None):
|
|
| 37 |
chat_interface = gr.Interface(
|
| 38 |
fn=openai_chatbot,
|
| 39 |
inputs=[
|
| 40 |
-
gr.
|
| 41 |
-
gr.State() #
|
| 42 |
],
|
| 43 |
-
outputs=[gr.
|
| 44 |
title="OpenAI Chatbot",
|
| 45 |
description="Talk to a bot powered by OpenAI GPT-3."
|
| 46 |
)
|
| 47 |
|
| 48 |
|
|
|
|
| 49 |
if __name__ == "__main__":
|
| 50 |
chat_interface.launch(debug=True)
|
|
|
|
| 37 |
chat_interface = gr.Interface(
|
| 38 |
fn=openai_chatbot,
|
| 39 |
inputs=[
|
| 40 |
+
gr.Textbox(label="Your Message"), # Updated to gr.Textbox
|
| 41 |
+
gr.State() # State remains the same
|
| 42 |
],
|
| 43 |
+
outputs=[gr.Textbox(label="OpenAI Response")], # Updated to gr.Textbox
|
| 44 |
title="OpenAI Chatbot",
|
| 45 |
description="Talk to a bot powered by OpenAI GPT-3."
|
| 46 |
)
|
| 47 |
|
| 48 |
|
| 49 |
+
|
| 50 |
if __name__ == "__main__":
|
| 51 |
chat_interface.launch(debug=True)
|