Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|