awacke1 commited on
Commit
77129b8
1 Parent(s): f13ea82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -113,6 +113,7 @@ def StreamLLMChatResponse(prompt):
113
  res_box = st.empty()
114
  collected_chunks=[]
115
  collected_messages=[]
 
116
  for r in stream:
117
  if r.token.special:
118
  continue
@@ -126,9 +127,10 @@ def StreamLLMChatResponse(prompt):
126
  if len(r.token.text) > 0:
127
  result="".join(report).strip()
128
  res_box.markdown(f'*{result}*')
 
129
  except:
130
  st.write(' ')
131
- return "".join(report).strip().
132
  except:
133
  st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
134
 
 
113
  res_box = st.empty()
114
  collected_chunks=[]
115
  collected_messages=[]
116
+ allresults=''
117
  for r in stream:
118
  if r.token.special:
119
  continue
 
127
  if len(r.token.text) > 0:
128
  result="".join(report).strip()
129
  res_box.markdown(f'*{result}*')
130
+ allresults=allresults+result
131
  except:
132
  st.write(' ')
133
+ return allresults
134
  except:
135
  st.write('DromeLlama is asleep. Starting up now on A10 - please give 5 minutes then retry as KEDA scales up from zero to activate running container(s).')
136