Spaces:
Runtime error
Runtime error
Commit
·
534b3f6
1
Parent(s):
15e7e9a
Update app.py
Browse files
app.py
CHANGED
@@ -65,4 +65,11 @@ if sidebar_selectbox == "Bulk upload and mark":
|
|
65 |
|
66 |
st.subheader("Bulk compare similarity of sentences")
|
67 |
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
st.subheader("Bulk compare similarity of sentences")
|
67 |
|
68 |
+
# Only allow user to upload CSV files
|
69 |
+
data_file = st.file_uploader("Upload CSV",type=["csv"])
|
70 |
+
|
71 |
+
if data_file is not None:
|
72 |
+
file_details = {"filename":data_file.name, "filetype":data_file.type, "filesize":data_file.size}
|
73 |
+
st.write(file_details)
|
74 |
+
df = pd.read_csv(data_file)
|
75 |
+
st.dataframe(df)
|