CineAI commited on
Commit
08167d5
·
verified ·
1 Parent(s): f0a3b15

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -17
src/streamlit_app.py CHANGED
@@ -14,18 +14,6 @@ st.image(
14
  caption="Apple Magic Keyboard with Ukrainian/English Layout"
15
  )
16
 
17
- st.title("⌨️ Keyboard Layout Fixer")
18
- st.markdown(
19
- """
20
- Ever typed a whole sentence only to realize you forgot to switch keyboard layouts? 🤦
21
- For example, typing `руддщ` instead of `hello`.
22
-
23
- This simple tool instantly converts text typed in the wrong layout between **Ukrainian** and **English**.
24
- """
25
- )
26
-
27
- # --- Translation Dictionaries and Function ---
28
-
29
  # Provided Ukrainian to English layout map
30
  ukr_to_eng_keyboard_layout = {
31
  'й': 'q', 'ц': 'w', 'у': 'e', 'к': 'r', 'е': 't', 'н': 'y', 'г': 'u', 'ш': 'i', 'щ': 'o', 'з': 'p', 'х': '[', 'ї': ']', 'ф': 'a', 'і': 's', 'в': 'd', 'а': 'f', 'п': 'g', 'р': 'h', 'о': 'j', 'л': 'k', 'д': 'l', 'ж': ';', 'є': "'", 'я': 'z', 'ч': 'x', 'с': 'c', 'м': 'v', 'и': 'b', 'т': 'n', 'ь': 'm', 'б': ',', 'ю': '.',
@@ -84,8 +72,4 @@ if original_text:
84
  st.info("The result text is displayed in the box above for easy copying.")
85
 
86
  else:
87
- st.info("Enter some text in the box above to see the conversion.")
88
-
89
- # --- Footer ---
90
- st.markdown("---")
91
- st.markdown("Made with ❤️ using [Streamlit](https://streamlit.io).")
 
14
  caption="Apple Magic Keyboard with Ukrainian/English Layout"
15
  )
16
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  # Provided Ukrainian to English layout map
18
  ukr_to_eng_keyboard_layout = {
19
  'й': 'q', 'ц': 'w', 'у': 'e', 'к': 'r', 'е': 't', 'н': 'y', 'г': 'u', 'ш': 'i', 'щ': 'o', 'з': 'p', 'х': '[', 'ї': ']', 'ф': 'a', 'і': 's', 'в': 'd', 'а': 'f', 'п': 'g', 'р': 'h', 'о': 'j', 'л': 'k', 'д': 'l', 'ж': ';', 'є': "'", 'я': 'z', 'ч': 'x', 'с': 'c', 'м': 'v', 'и': 'b', 'т': 'n', 'ь': 'm', 'б': ',', 'ю': '.',
 
72
  st.info("The result text is displayed in the box above for easy copying.")
73
 
74
  else:
75
+ st.info("Enter some text in the box above to see the conversion.")