Update app.py
Browse files
app.py
CHANGED
|
@@ -370,8 +370,7 @@ if query:
|
|
| 370 |
<div class="spinner"></div>
|
| 371 |
</div>
|
| 372 |
""", unsafe_allow_html=True)
|
| 373 |
-
|
| 374 |
-
think.empty()
|
| 375 |
else:
|
| 376 |
st.markdown("")
|
| 377 |
|
|
@@ -445,6 +444,7 @@ if query:
|
|
| 445 |
])
|
| 446 |
rewritten = response.content.strip()
|
| 447 |
st.markdown(f'<div class="chat-message">{rewritten}</div>', unsafe_allow_html=True)
|
|
|
|
| 448 |
found = True
|
| 449 |
break
|
| 450 |
|
|
@@ -455,4 +455,5 @@ if query:
|
|
| 455 |
HumanMessage(content=prompt)
|
| 456 |
])
|
| 457 |
rewritten = response.content.strip()
|
| 458 |
-
st.markdown(f'<div class="chat-message">{rewritten}</div>', unsafe_allow_html=True)
|
|
|
|
|
|
| 370 |
<div class="spinner"></div>
|
| 371 |
</div>
|
| 372 |
""", unsafe_allow_html=True)
|
| 373 |
+
|
|
|
|
| 374 |
else:
|
| 375 |
st.markdown("")
|
| 376 |
|
|
|
|
| 444 |
])
|
| 445 |
rewritten = response.content.strip()
|
| 446 |
st.markdown(f'<div class="chat-message">{rewritten}</div>', unsafe_allow_html=True)
|
| 447 |
+
think.empty()
|
| 448 |
found = True
|
| 449 |
break
|
| 450 |
|
|
|
|
| 455 |
HumanMessage(content=prompt)
|
| 456 |
])
|
| 457 |
rewritten = response.content.strip()
|
| 458 |
+
st.markdown(f'<div class="chat-message">{rewritten}</div>', unsafe_allow_html=True)
|
| 459 |
+
think.empty()
|