Corianas commited on
Commit
89ca527
·
1 Parent(s): a4cf9cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -114,7 +114,7 @@ with gr.Blocks() as demo:
114
  return gr.update(value="", interactive=False), history + [[user_message, None]]
115
 
116
  def bot(history):
117
- bot_message = random.choice(["How are you?", "I love you", "I'm very hungry"])
118
  history[-1][1] = ""
119
  for character in bot_message:
120
  history[-1][1] += character
 
114
  return gr.update(value="", interactive=False), history + [[user_message, None]]
115
 
116
  def bot(history):
117
+ bot_message = gen(history)
118
  history[-1][1] = ""
119
  for character in bot_message:
120
  history[-1][1] += character