Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,4 +19,16 @@ def load_data(uploaded_file):
|
|
| 19 |
else :
|
| 20 |
st.error("unsupported format")
|
| 21 |
return None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
|
|
|
| 19 |
else :
|
| 20 |
st.error("unsupported format")
|
| 21 |
return None
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
st.tittle("ML Model Deployer")
|
| 26 |
+
uploaded_file = st.file_uploader("Upload a File" , type = [ "csv", "xls", "xlsx", "xml", "txt"] )
|
| 27 |
+
|
| 28 |
+
if uploaded_file is not None:
|
| 29 |
+
df = load_data(uploaded_file)
|
| 30 |
+
st.write("### Data Preview")
|
| 31 |
+
st.dataframe(df.head())
|
| 32 |
+
|
| 33 |
+
|
| 34 |
|