dylanmeca commited on
Commit
cd99eb9
Β·
1 Parent(s): 22fdd72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,9 +35,9 @@ with block:
35
  gr.Markdown("""<h1><center>πŸ€– ChatGPT-Assistant 🐍</center></h1>
36
  <p><center>ChatGPT-Assistant is a chatbot that uses the gpt-3.5-turbo model</center></p>
37
  """)
38
- api_key = gr.Textbox(placeholder="api_key")
39
  chatbot = gr.Chatbot()
40
- message = gr.Textbox(placeholder="message")
41
  state = gr.State()
42
  submit = gr.Button("Send")
43
  submit.click(answer_chatgpt, inputs=[api_key, message, state], outputs=[chatbot, state])
 
35
  gr.Markdown("""<h1><center>πŸ€– ChatGPT-Assistant 🐍</center></h1>
36
  <p><center>ChatGPT-Assistant is a chatbot that uses the gpt-3.5-turbo model</center></p>
37
  """)
38
+ api_key = gr.Textbox(type="password", label="Enter your OpenAI API key here")
39
  chatbot = gr.Chatbot()
40
+ message = gr.Textbox(label="Message")
41
  state = gr.State()
42
  submit = gr.Button("Send")
43
  submit.click(answer_chatgpt, inputs=[api_key, message, state], outputs=[chatbot, state])