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