Spaces:
Sleeping
Sleeping
Try fix blank input box #3
Browse files
app.py
CHANGED
|
@@ -64,15 +64,12 @@ def handle_submit():
|
|
| 64 |
|
| 65 |
answer = ""
|
| 66 |
|
| 67 |
-
response_placeholder = st.empty()
|
| 68 |
-
|
| 69 |
for chunk in response:
|
| 70 |
answer += chunk['choices'][0]['delta']['content']
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
| 74 |
st.session_state.conversation = f"<p>{answer}</p>" + st.session_state.conversation
|
| 75 |
-
|
| 76 |
placeholder.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|
| 77 |
else:
|
| 78 |
st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
|
|
|
|
| 64 |
|
| 65 |
answer = ""
|
| 66 |
|
|
|
|
|
|
|
| 67 |
for chunk in response:
|
| 68 |
answer += chunk['choices'][0]['delta']['content']
|
| 69 |
+
placeholder.markdown(f'<div class="scrollable-div"><p>{answer}</p></div>', unsafe_allow_html=True)
|
| 70 |
|
| 71 |
+
#placeholder.markdown(f'<div class="scrollable-div"><p>{answer}</p></div>', unsafe_allow_html=True)
|
| 72 |
st.session_state.conversation = f"<p>{answer}</p>" + st.session_state.conversation
|
|
|
|
| 73 |
placeholder.markdown(f'<div class="scrollable-div">{st.session_state.conversation}</div>', unsafe_allow_html=True)
|
| 74 |
else:
|
| 75 |
st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
|