Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,16 +32,19 @@ link_dict = {
|
|
32 |
"image segmentation": "https://huggingface.co/tasks/image-segmentation",
|
33 |
"object detection": "https://huggingface.co/tasks/object-detection"}
|
34 |
|
35 |
-
placeholder = st.empty() # placeholder for latest message
|
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 |
-
message_history.append({"text":input, "is_user" : True})
|
41 |
|
42 |
for msg in message_history:
|
43 |
message(msg["text"], is_user = msg["is_user"]) # display all the previous message
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
data, resp = query(
|
47 |
{
|
|
|
32 |
"image segmentation": "https://huggingface.co/tasks/image-segmentation",
|
33 |
"object detection": "https://huggingface.co/tasks/object-detection"}
|
34 |
|
|
|
35 |
|
36 |
message_history = [{"text":"Let's find out the best task for your use case! Tell me about your use case :)", "is_user":False}]
|
37 |
|
|
|
|
|
38 |
|
39 |
for msg in message_history:
|
40 |
message(msg["text"], is_user = msg["is_user"]) # display all the previous message
|
41 |
|
42 |
+
placeholder = st.empty() # placeholder for latest message
|
43 |
+
|
44 |
+
input = st.text_input("Ask me 🤗")
|
45 |
+
message_history.append({"text":input, "is_user" : True})
|
46 |
+
|
47 |
+
|
48 |
|
49 |
data, resp = query(
|
50 |
{
|