Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|