Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -809,12 +809,12 @@ if st.session_state.framework == "dash":
|
|
809 |
color:black !important;
|
810 |
}}
|
811 |
div[class*="st-key-user-"]{{
|
812 |
-
margin-left:
|
813 |
width:550px;
|
814 |
|
815 |
}}
|
816 |
div[class*="st-key-assistant-"]{{
|
817 |
-
margin-left:
|
818 |
|
819 |
}}
|
820 |
|
@@ -1473,7 +1473,7 @@ if st.session_state.framework == "dash":
|
|
1473 |
delete_key = f"del_{chat_id}"
|
1474 |
|
1475 |
# Create side-by-side buttons
|
1476 |
-
col1, col2 = st.columns([
|
1477 |
key = f"col_{chat_id}"
|
1478 |
with st.container(key=key):
|
1479 |
with col1:
|
@@ -1483,11 +1483,7 @@ if st.session_state.framework == "dash":
|
|
1483 |
st.rerun()
|
1484 |
|
1485 |
|
1486 |
-
|
1487 |
-
if st.button("🗑️", key=delete_key):
|
1488 |
-
os.remove(file_path)
|
1489 |
-
st.success(f"Deleted chat: {chat_id}")
|
1490 |
-
st.rerun()
|
1491 |
|
1492 |
except (json.JSONDecodeError, FileNotFoundError):
|
1493 |
pass # Skip invalid files
|
|
|
809 |
color:black !important;
|
810 |
}}
|
811 |
div[class*="st-key-user-"]{{
|
812 |
+
margin-left:510px;
|
813 |
width:550px;
|
814 |
|
815 |
}}
|
816 |
div[class*="st-key-assistant-"]{{
|
817 |
+
margin-left:100px;
|
818 |
|
819 |
}}
|
820 |
|
|
|
1473 |
delete_key = f"del_{chat_id}"
|
1474 |
|
1475 |
# Create side-by-side buttons
|
1476 |
+
col1, col2 = st.columns([5, 1])
|
1477 |
key = f"col_{chat_id}"
|
1478 |
with st.container(key=key):
|
1479 |
with col1:
|
|
|
1483 |
st.rerun()
|
1484 |
|
1485 |
|
1486 |
+
|
|
|
|
|
|
|
|
|
1487 |
|
1488 |
except (json.JSONDecodeError, FileNotFoundError):
|
1489 |
pass # Skip invalid files
|