Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
146 |
chunk_message = chunk['choices'][0]['delta'] # extract the message
|
147 |
collected_messages.append(chunk_message) # save the message
|
148 |
content=chunk["choices"][0].get("delta",{}).get("content")
|
149 |
-
st.
|
150 |
st.markdown(f"Full response received {chunk_time:.2f} seconds after request")
|
151 |
full_reply_content = ''.join([m.get('content', '') for m in collected_messages])
|
152 |
st.markdown(f"Full conversation received: {full_reply_content}")
|
|
|
146 |
chunk_message = chunk['choices'][0]['delta'] # extract the message
|
147 |
collected_messages.append(chunk_message) # save the message
|
148 |
content=chunk["choices"][0].get("delta",{}).get("content")
|
149 |
+
st.write(f'*{content}*')
|
150 |
st.markdown(f"Full response received {chunk_time:.2f} seconds after request")
|
151 |
full_reply_content = ''.join([m.get('content', '') for m in collected_messages])
|
152 |
st.markdown(f"Full conversation received: {full_reply_content}")
|