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