merve HF Staff commited on
Commit
2fc5351
Β·
1 Parent(s): 44409cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -36,11 +36,9 @@ link_dict = {
36
 
37
  message_history = [{"text":"Let's find out the best task for your use case! Tell me about your use case :)", "is_user":False}]
38
 
39
-
40
  for msg in message_history:
41
  message(msg["text"], is_user = msg["is_user"]) # display all the previous message
42
-
43
- input = st.text_input("Ask me πŸ€—")
44
 
45
  message_history.append({"text":input, "is_user" : True})
46
 
@@ -63,7 +61,7 @@ if resp.status_code == 200:
63
  for key in link_dict:
64
  if key in model_answer:
65
  url = link_dict[key]
66
- response_templates = [f"{model_answer} is the best task for this 🀩 Check out the page πŸ‘‰πŸΌ {url}", f"I think you should use {model_answer} πŸͺ„ Check it out here πŸ‘‰πŸΌ {url}", f"I think {model_answer} should work for you πŸ€“ Check out the page πŸ‘‰πŸΌ {url}"]
67
 
68
 
69
  bot_answer = random.choice(response_templates)
 
36
 
37
  message_history = [{"text":"Let's find out the best task for your use case! Tell me about your use case :)", "is_user":False}]
38
 
39
+ input = st.text_input("Ask me πŸ€—")
40
  for msg in message_history:
41
  message(msg["text"], is_user = msg["is_user"]) # display all the previous message
 
 
42
 
43
  message_history.append({"text":input, "is_user" : True})
44
 
 
61
  for key in link_dict:
62
  if key in model_answer:
63
  url = link_dict[key]
64
+ response_templates = [f"I think that {model_answer} is the best task for this 🀩 Check out the page πŸ‘‰πŸΌ {url}", f"I think you should use {model_answer} πŸͺ„ Check it out here πŸ‘‰πŸΌ {url}", f"I think {model_answer} should work for you πŸ€“ Check out the page πŸ‘‰πŸΌ {url}"]
65
 
66
 
67
  bot_answer = random.choice(response_templates)