Spaces:
Sleeping
Sleeping
Commit
·
fa16baf
1
Parent(s):
9c51fca
Update app.py
Browse files
app.py
CHANGED
@@ -1 +1,18 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import time
|
3 |
+
|
4 |
+
def main():
|
5 |
+
st.title("Streamlit Example")
|
6 |
+
|
7 |
+
st.write("Waiting for 5 seconds...")
|
8 |
+
time.sleep(5)
|
9 |
+
st.write("Completed!")
|
10 |
+
|
11 |
+
uploaded_file = st.file_uploader("Upload a file :)")
|
12 |
+
|
13 |
+
if uploaded_file is not None:
|
14 |
+
content = uploaded_file.read().decode("utf-8")
|
15 |
+
st.markdown(content)
|
16 |
+
|
17 |
+
if __name__ == "__main__":
|
18 |
+
main()
|