Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ with block:
|
|
| 42 |
""")
|
| 43 |
api_key = gr.Textbox(type="password", label="Enter your OpenAI API key here", placeholder="sk-...0VYO")
|
| 44 |
system = gr.Textbox(label="System message", placeholder="You are a helpful assistant.")
|
| 45 |
-
sub = gr.Button("Send")
|
| 46 |
sub.click(chatgpt.system_message, inputs=[system])
|
| 47 |
chatbot = gr.Chatbot()
|
| 48 |
message = gr.Textbox(label="Message", placeholder="Hi, how are things ?")
|
|
|
|
| 42 |
""")
|
| 43 |
api_key = gr.Textbox(type="password", label="Enter your OpenAI API key here", placeholder="sk-...0VYO")
|
| 44 |
system = gr.Textbox(label="System message", placeholder="You are a helpful assistant.")
|
| 45 |
+
sub = gr.Button("Send system message")
|
| 46 |
sub.click(chatgpt.system_message, inputs=[system])
|
| 47 |
chatbot = gr.Chatbot()
|
| 48 |
message = gr.Textbox(label="Message", placeholder="Hi, how are things ?")
|