wenjun99 commited on
Commit
a38ee9b
·
verified ·
1 Parent(s): 07a851c

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +4 -4
src/app.py CHANGED
@@ -241,7 +241,7 @@ with tab1:
241
  columns = [f"Position {i+1}" for i in range(group_size)]
242
  df = pd.DataFrame(groups, columns=columns)
243
  df.insert(0, "Sample", range(1, len(df) + 1))
244
- st.dataframe(df, use_container_width=True)
245
 
246
  st.download_button(
247
  "⬇️ Download as CSV",
@@ -708,7 +708,7 @@ with tab4:
708
  })
709
 
710
  preview_df = pd.DataFrame(preview_rows)
711
- st.dataframe(preview_df, use_container_width=True, height=300)
712
 
713
  st.markdown("#### Plate Map (hover cells for details)")
714
  plate_html = render_plate_map_html(plates_needed, well_to_input, max_wells_per_source, num_inputs)
@@ -804,11 +804,11 @@ with tab4:
804
  ]
805
 
806
  st.markdown("### 💧 Pipetting Commands")
807
- st.dataframe(commands_df, use_container_width=True, height=400)
808
  st.download_button("⬇️ Download Commands CSV", commands_df.to_csv(index=False), "pipetting_commands.csv", mime="text/csv")
809
 
810
  st.markdown("### 📊 Source Volume Summary")
811
- st.dataframe(summary_df, use_container_width=True, height=400)
812
  st.download_button("⬇️ Download Source Summary CSV", summary_df.to_csv(index=False), "source_volume_summary.csv", mime="text/csv")
813
 
814
  except Exception as e:
 
241
  columns = [f"Position {i+1}" for i in range(group_size)]
242
  df = pd.DataFrame(groups, columns=columns)
243
  df.insert(0, "Sample", range(1, len(df) + 1))
244
+ st.dataframe(df, width="stretch")
245
 
246
  st.download_button(
247
  "⬇️ Download as CSV",
 
708
  })
709
 
710
  preview_df = pd.DataFrame(preview_rows)
711
+ st.dataframe(preview_df, width="stretch", height=300)
712
 
713
  st.markdown("#### Plate Map (hover cells for details)")
714
  plate_html = render_plate_map_html(plates_needed, well_to_input, max_wells_per_source, num_inputs)
 
804
  ]
805
 
806
  st.markdown("### 💧 Pipetting Commands")
807
+ st.dataframe(commands_df, width="stretch", height=400)
808
  st.download_button("⬇️ Download Commands CSV", commands_df.to_csv(index=False), "pipetting_commands.csv", mime="text/csv")
809
 
810
  st.markdown("### 📊 Source Volume Summary")
811
+ st.dataframe(summary_df, width="stretch", height=400)
812
  st.download_button("⬇️ Download Source Summary CSV", summary_df.to_csv(index=False), "source_volume_summary.csv", mime="text/csv")
813
 
814
  except Exception as e: