Spaces:
Running
Running
Update app.py
Browse files
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])
|