Spaces:
Build error
Build error
Commit
·
61f718f
1
Parent(s):
2c8ac08
update print
Browse files
app.py
CHANGED
|
@@ -482,8 +482,10 @@ if prompt := st.chat_input(placeholder="Input Your Request"):
|
|
| 482 |
else:
|
| 483 |
print("No File Found in Response")
|
| 484 |
except Exception as e:
|
| 485 |
-
print("No need to add file in chatbot:", e)
|
| 486 |
-
|
|
|
|
|
|
|
| 487 |
st.markdown(response, unsafe_allow_html=True)
|
| 488 |
# st.markdown(colored_code_block(response), unsafe_allow_html=True)
|
| 489 |
# for content in response:
|
|
@@ -492,4 +494,4 @@ if prompt := st.chat_input(placeholder="Input Your Request"):
|
|
| 492 |
# elif isinstance(content, dict) and content.get('type') == 'code':
|
| 493 |
# st.markdown(colored_code_block(content.get('code')), unsafe_allow_html=True)
|
| 494 |
|
| 495 |
-
|
|
|
|
| 482 |
else:
|
| 483 |
print("No File Found in Response")
|
| 484 |
except Exception as e:
|
| 485 |
+
print("No need to add file in chatbot:", e)
|
| 486 |
+
print("Current Response:", response)
|
| 487 |
+
msgs.add_ai_message(response)
|
| 488 |
+
print("History:", msgs.messages)
|
| 489 |
st.markdown(response, unsafe_allow_html=True)
|
| 490 |
# st.markdown(colored_code_block(response), unsafe_allow_html=True)
|
| 491 |
# for content in response:
|
|
|
|
| 494 |
# elif isinstance(content, dict) and content.get('type') == 'code':
|
| 495 |
# st.markdown(colored_code_block(content.get('code')), unsafe_allow_html=True)
|
| 496 |
|
| 497 |
+
|