merve HF Staff commited on
Commit
93b20f9
Β·
1 Parent(s): 5d2b7f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import streamlit as st
2
  import requests
3
  import os
4
  from streamlit_chat import message
 
5
 
6
 
7
  @st.cache
@@ -35,7 +36,8 @@ data = query(
35
  )
36
  try:
37
  bot_answer = data["answer"]
38
- message(f"{bot_answer} is the best task for this :)")
 
39
 
40
  except:
41
  message("I'm listening πŸ‘€ ")
 
2
  import requests
3
  import os
4
  from streamlit_chat import message
5
+ import random
6
 
7
 
8
  @st.cache
 
36
  )
37
  try:
38
  bot_answer = data["answer"]
39
+ response_templates = [f"{bot_answer} is the best task for this 🀩", f"I think you should use {bot_answer} πŸͺ„", f"I think {bot_answer} should work for you πŸ€“"]
40
+ message(random.choice(response_templates))
41
 
42
  except:
43
  message("I'm listening πŸ‘€ ")