Spaces:
Running
Running
Commit ·
bac1424
1
Parent(s): 2e2d510
Improved inference
Browse files189 unmodified lines1901911921931941951961972 unmodified lines200201202203204205206189 unmodified linesplaceholder = st.empty()if st.session_state.rag_enabled :for chunk in chat_stream :if chunk.token['text']!='</s>' :full_response += chunk.token["text"]placeholder.markdown(full_response + " |")2 unmodified lineselse :for chunk in chat_stream :if chunk.token['text']!='</s>' :full_response += chunk.token["text"]placeholder.markdown(full_response + " |")placeholder.markdown(full_response)189 unmodified lines1901911921931941951961972 unmodified lines200201202203204205206189 unmodified linesplaceholder = st.empty()if st.session_state.rag_enabled :for chunk in chat_stream :if chunk.token.text!='</s>' :full_response += chunk.token.textplaceholder.markdown(full_response + " |")2 unmodified lineselse :for chunk in chat_stream :if chunk.token['text']!='</s>' :full_response += chunk.token.textplaceholder.markdown(full_response + " |")placeholder.markdown(full_response)
app.py+3-3