Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,12 +35,15 @@ def read_csv_file(file):
|
|
35 |
|
36 |
|
37 |
|
38 |
-
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
44 |
|
45 |
|
46 |
|
|
|
35 |
|
36 |
|
37 |
|
38 |
+
uploaded_file = st.sidebar.file_uploader("Choose a CSV file", type=["csv"])
|
39 |
|
40 |
+
# Check if a file was uploaded
|
41 |
+
if uploaded_file is not None:
|
42 |
+
# Read the CSV file
|
43 |
+
df = pd.read_csv(uploaded_file)
|
44 |
+
|
45 |
+
# Show the contents of the CSV file in the main area
|
46 |
+
st.write(df)
|
47 |
|
48 |
|
49 |
|