Spaces:
Sleeping
Sleeping
Commit ·
bac1424
1
Parent(s): 2e2d510
Improved inference
Browse files189 unmodified lines1901911921931941931941951961972 unmodified lines200201202203203204205206189 unmodified lines placeholder = st.empty() if st.session_state.rag_enabled : for chunk in chat_stream : if chunk.token['text']!='</s>' : full_response += chunk.token["text"] if chunk.token.text!='</s>' : full_response += chunk.token.text
placeholder.markdown(full_response + " |") 2 unmodified lines else : for chunk in chat_stream : if chunk.token['text']!='</s>' : full_response += chunk.token["text"] full_response += chunk.token.text placeholder.markdown(full_response + " |") placeholder.markdown(full_response) app.py+3-3