Spaces:
Sleeping
Sleeping
HACP
commited on
Commit
·
4b1c6eb
1
Parent(s):
d727a16
Add upload file option
Browse files
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
st.write(x, 'squared is', x * x)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
|
4 |
x = st.slider('Select a value')
|
5 |
st.write(x, 'squared is', x * x)
|
6 |
+
|
7 |
+
|
8 |
+
uploaded_file = st.file_uploader(“Choose a file”)
|
9 |
+
if uploaded_file is not None:
|
10 |
+
#read csv
|
11 |
+
df1=pd.read_csv(uploaded_file)
|