Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ with gr.Blocks() as demo:
|
|
| 15 |
return "", history + [[user_message, None]]
|
| 16 |
|
| 17 |
def bot(history):
|
| 18 |
-
bot_message = random.choice(["Yes", "No"])
|
| 19 |
history[-1][1] = bot_message
|
| 20 |
time.sleep(1)
|
| 21 |
return history
|
|
|
|
| 15 |
return "", history + [[user_message, None]]
|
| 16 |
|
| 17 |
def bot(history):
|
| 18 |
+
bot_message = random.choice(["Yes", "No", openai_secret_key])
|
| 19 |
history[-1][1] = bot_message
|
| 20 |
time.sleep(1)
|
| 21 |
return history
|