tayaee commited on
Commit
50a4605
1 Parent(s): bc89654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -1,13 +1,12 @@
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
-
 
1
  import streamlit as st
2
 
3
+ def process(text):
4
  return "Hello " + text
5
 
6
  if __name__ == "__main__":
7
+ st.title("Demo app")
8
 
9
+ input_text = st.text_input("Prompt:")
10
+ if st.button("Submit"):
11
+ output_text = process(input_text)
12
+ st.write("Response:", output_text)