军舰 commited on
Commit
fe80fb7
1 Parent(s): c0c29d2

Add OPENAI_API_KEY prompt info

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, "Error: No OpenAI API Key found. Please enter your key in the cell above."))
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))