pvanand commited on
Commit
373ce2a
·
1 Parent(s): 437ebe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 = bot_reply[1]["text"]
 
 
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