Azhs commited on
Commit
d8c5053
1 Parent(s): f2d254d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -289,23 +289,23 @@ def respond(message, chat_history):
289
 
290
  def suggestion1(chat_history):
291
  response = generate_text(suggestion[0])
292
- chat_history.append((None, suggestion[0]))
293
- chat_history.append((response, None))
294
  return chat_history
295
 
296
  def suggestion2(chat_history):
297
  response = generate_text(suggestion[1])
298
- chat_history.append((None, suggestion[1]))
299
- chat_history.append((response, None))
300
  return chat_history
301
 
302
  def suggestion3(chat_history):
303
  response = generate_text(suggestion[2])
304
- chat_history.append((None, suggestion[2]))
305
- chat_history.append((response, None))
306
  return chat_history
307
 
308
-
 
 
 
309
  user_profile_image = "https://huggingface.co/spaces/ALOQAS/aloqas-gradio/resolve/main/img/user.png"
310
  bot_profile_image = "https://huggingface.co/spaces/ALOQAS/aloqas-gradio/resolve/main/img/bot.png"
311
 
 
289
 
290
  def suggestion1(chat_history):
291
  response = generate_text(suggestion[0])
292
+ chat_history.append((suggestion[0], response+"."))
 
293
  return chat_history
294
 
295
  def suggestion2(chat_history):
296
  response = generate_text(suggestion[1])
297
+ chat_history.append((suggestion[1], response+"."))
 
298
  return chat_history
299
 
300
  def suggestion3(chat_history):
301
  response = generate_text(suggestion[2])
302
+ chat_history.append((suggestion[2], response+"."))
 
303
  return chat_history
304
 
305
+ """
306
+ chat_history.append((None, suggestion[2]))
307
+ chat_history.append((response, None))
308
+ """
309
  user_profile_image = "https://huggingface.co/spaces/ALOQAS/aloqas-gradio/resolve/main/img/user.png"
310
  bot_profile_image = "https://huggingface.co/spaces/ALOQAS/aloqas-gradio/resolve/main/img/bot.png"
311