tayaee commited on
Commit
bc89654
1 Parent(s): d4a0564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -1,4 +1,13 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ def translate(text):
4
+ return "Hello " + text
5
+
6
+ if __name__ == "__main__":
7
+ st.title("Text Translator")
8
+
9
+ input_text = st.text_input("Enter text:")
10
+ if st.button("Translate"):
11
+ output_text = translate(input_text)
12
+ st.write("Translated text:", output_text)
13
+