dylanmeca commited on
Commit
63c10af
Β·
1 Parent(s): 22e38b1

Update app.py

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