Spaces:
Runtime error
Runtime error
军舰
commited on
Commit
•
fe80fb7
1
Parent(s):
c0c29d2
Add OPENAI_API_KEY prompt info
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ with gr.Blocks(title="ChatGPT 助手") as demo:
|
|
23 |
|
24 |
def ask(message, chat_history):
|
25 |
if openai.api_key is None:
|
26 |
-
chat_history.append((message, "
|
27 |
else:
|
28 |
bot_message = conv.ask(message)
|
29 |
chat_history.append((message, bot_message))
|
|
|
23 |
|
24 |
def ask(message, chat_history):
|
25 |
if openai.api_key is None:
|
26 |
+
chat_history.append((message, "Please paste your OpenAI key to use"))
|
27 |
else:
|
28 |
bot_message = conv.ask(message)
|
29 |
chat_history.append((message, bot_message))
|