Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -237,8 +237,6 @@ def save_conversation(chat_history, session_id, page_number):
|
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
-
|
| 241 |
-
|
| 242 |
def page1():
|
| 243 |
try:
|
| 244 |
hide_streamlit_style = """
|
|
@@ -327,6 +325,10 @@ def page1():
|
|
| 327 |
|
| 328 |
# You can use Streamlit's text function to display the timing
|
| 329 |
st.text(f"Response time: {duration:.2f} seconds")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
|
| 331 |
st.session_state['chat_history_page1'].append(("Bot", response, "new"))
|
| 332 |
|
|
@@ -339,7 +341,12 @@ def page1():
|
|
| 339 |
|
| 340 |
# Save conversation after chat interaction
|
| 341 |
save_conversation(st.session_state['chat_history_page1'], st.session_state['session_id'], 1)
|
| 342 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
# Clear the input field after the query is made
|
| 344 |
query = ""
|
| 345 |
|
|
|
|
| 237 |
|
| 238 |
|
| 239 |
|
|
|
|
|
|
|
| 240 |
def page1():
|
| 241 |
try:
|
| 242 |
hide_streamlit_style = """
|
|
|
|
| 325 |
|
| 326 |
# You can use Streamlit's text function to display the timing
|
| 327 |
st.text(f"Response time: {duration:.2f} seconds")
|
| 328 |
+
|
| 329 |
+
# Display the current working directory after save_conversation
|
| 330 |
+
current_dir = os.getcwd()
|
| 331 |
+
st.text(f"Current working directory before save_conversation: {current_dir}")
|
| 332 |
|
| 333 |
st.session_state['chat_history_page1'].append(("Bot", response, "new"))
|
| 334 |
|
|
|
|
| 341 |
|
| 342 |
# Save conversation after chat interaction
|
| 343 |
save_conversation(st.session_state['chat_history_page1'], st.session_state['session_id'], 1)
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
# Display the current working directory after save_conversation
|
| 347 |
+
current_dir = os.getcwd()
|
| 348 |
+
st.text(f"Current working directory after save_conversation: {current_dir}")
|
| 349 |
+
|
| 350 |
# Clear the input field after the query is made
|
| 351 |
query = ""
|
| 352 |
|