wenjun99 commited on
Commit
25c8ed3
·
verified ·
1 Parent(s): 8ba360a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,10 +77,10 @@ tab1, tab2, tab3, tab4 = st.tabs(["Text to Binary Labels (31)", "EF → Binary (
77
  with tab1:
78
  user_input = st.text_input("Enter text", value="DNA", key="input_text_31")
79
  if user_input:
80
- ascii_codes = [ord(c) for c in user_input]
81
  binary_labels = string_to_binary_labels(user_input)
82
 
83
- st.subheader("ASCII Codes")
84
  st.write(ascii_codes)
85
 
86
  st.subheader("Binary Labels per Character")
 
77
  with tab1:
78
  user_input = st.text_input("Enter text", value="DNA", key="input_text_31")
79
  if user_input:
80
+ ascii_codes = [reverse_voyager_table.get(c.upper(), 0) for c in user_input]
81
  binary_labels = string_to_binary_labels(user_input)
82
 
83
+ st.subheader("Voyager ASCII Codes")
84
  st.write(ascii_codes)
85
 
86
  st.subheader("Binary Labels per Character")