Add application file
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
def greeting(name):
|
4 |
+
st.write(f"Hello, {name}!")
|
5 |
+
|
6 |
+
st.title("My first Streamlit app")
|
7 |
+
st.text("This is a simple app that greets the user.")
|
8 |
+
|
9 |
+
name = st.text_input("What is your name?")
|
10 |
+
|
11 |
+
if name:
|
12 |
+
greeting(name)
|