wenjun99 commited on
Commit
9eee5e2
Β·
verified Β·
1 Parent(s): 1634559

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +3 -3
src/app.py CHANGED
@@ -13,8 +13,8 @@ from PIL import Image
13
  # =========================
14
  # Streamlit App Setup
15
  # =========================
16
- st.set_page_config(page_title="DNA ↔ Binary Converter", layout="wide")
17
- st.title("DNA ↔ Binary Converter")
18
 
19
  # =========================
20
  # Encoding Schemes
@@ -194,7 +194,7 @@ with tab1:
194
  binary_labels, display_units = encode_to_binary(user_input, encoding_scheme)
195
  binary_concat = ''.join(map(str, binary_labels))
196
 
197
- unit_label = "Byte" if encoding_scheme == "UTF-8 (8-bit)" else "Character"
198
  st.markdown(f"### Output 1 – Binary Labels per {unit_label}")
199
  st.caption(f"Encoding: **{encoding_scheme}** β€” {bits_per} bits per {unit_label.lower()}")
200
 
 
13
  # =========================
14
  # Streamlit App Setup
15
  # =========================
16
+ st.set_page_config(page_title="Bitconverter", layout="wide")
17
+ st.title("Bitconverter")
18
 
19
  # =========================
20
  # Encoding Schemes
 
194
  binary_labels, display_units = encode_to_binary(user_input, encoding_scheme)
195
  binary_concat = ''.join(map(str, binary_labels))
196
 
197
+ unit_label = "Character"
198
  st.markdown(f"### Output 1 – Binary Labels per {unit_label}")
199
  st.caption(f"Encoding: **{encoding_scheme}** β€” {bits_per} bits per {unit_label.lower()}")
200