Spaces:
Sleeping
Sleeping
Commit
·
bb3e3ae
1
Parent(s):
bac1424
Improved UI
Browse files
app.py
CHANGED
|
@@ -193,15 +193,15 @@ if prompt := st.chat_input("Chat with Ikigai Docs..."):
|
|
| 193 |
if chunk.token.text!='</s>' :
|
| 194 |
full_response += chunk.token.text
|
| 195 |
|
| 196 |
-
placeholder.markdown(full_response + "
|
| 197 |
|
| 198 |
placeholder.markdown(full_response)
|
| 199 |
st.info( f"""\n\nFetched from :\n {formatted_links}""")
|
| 200 |
else :
|
| 201 |
for chunk in chat_stream :
|
| 202 |
-
if chunk.token
|
| 203 |
full_response += chunk.token.text
|
| 204 |
-
placeholder.markdown(full_response + "
|
| 205 |
placeholder.markdown(full_response)
|
| 206 |
|
| 207 |
|
|
|
|
| 193 |
if chunk.token.text!='</s>' :
|
| 194 |
full_response += chunk.token.text
|
| 195 |
|
| 196 |
+
placeholder.markdown(full_response + "▌")
|
| 197 |
|
| 198 |
placeholder.markdown(full_response)
|
| 199 |
st.info( f"""\n\nFetched from :\n {formatted_links}""")
|
| 200 |
else :
|
| 201 |
for chunk in chat_stream :
|
| 202 |
+
if chunk.token.text!='</s>' :
|
| 203 |
full_response += chunk.token.text
|
| 204 |
+
placeholder.markdown(full_response + "▌")
|
| 205 |
placeholder.markdown(full_response)
|
| 206 |
|
| 207 |
|