Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,9 @@ if user_input := st.chat_input("What is up?"):
|
|
32 |
|
33 |
# Extract assistant response
|
34 |
if bot_reply !=[]:
|
35 |
-
assistant_response =
|
|
|
|
|
36 |
else:
|
37 |
assistant_response = 'API request returned with an empty list []. Please continue with a different question'
|
38 |
|
|
|
32 |
|
33 |
# Extract assistant response
|
34 |
if bot_reply !=[]:
|
35 |
+
assistant_response = ""
|
36 |
+
for reply in bot_reply:
|
37 |
+
assistant_response+=(" "+reply['text'])
|
38 |
else:
|
39 |
assistant_response = 'API request returned with an empty list []. Please continue with a different question'
|
40 |
|