Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = [
|
| 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")
|