File size: 279 Bytes
4b2c636
 
50a4605
bc89654
 
 
50a4605
bc89654
50a4605
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st

def process(text):
    return "Hello " + text

if __name__ == "__main__":
    st.title("Demo app")

    input_text = st.text_input("Prompt:")
    if st.button("Submit"):
        output_text = process(input_text)
        st.write("Response:", output_text)