danielle2003 commited on
Commit
d663671
·
verified ·
1 Parent(s): 6238876

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
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:500px;
813
  width:550px;
814
 
815
  }}
816
  div[class*="st-key-assistant-"]{{
817
- margin-left:120px;
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([4, 1])
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
- with col2:
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