Caerii commited on
Commit
5190e3f
·
1 Parent(s): 3069c1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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.inputs.Textbox(label="Your Message"),
41
- gr.State() # No label argument needed here
42
  ],
43
- outputs=[gr.outputs.Textbox(label="OpenAI Response")],
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)