Spaces:
Runtime error
Runtime error
Kuaaangwen
commited on
Commit
•
08a6457
1
Parent(s):
534b3f6
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,8 @@ if sidebar_selectbox == "Bulk upload and mark":
|
|
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 |
|
@@ -72,4 +74,10 @@ if sidebar_selectbox == "Bulk upload and mark":
|
|
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)
|
|
|
65 |
|
66 |
st.subheader("Bulk compare similarity of sentences")
|
67 |
|
68 |
+
sentence_reference = st.text_input("Reference sentence input")
|
69 |
+
|
70 |
# Only allow user to upload CSV files
|
71 |
data_file = st.file_uploader("Upload CSV",type=["csv"])
|
72 |
|
|
|
74 |
file_details = {"filename":data_file.name, "filetype":data_file.type, "filesize":data_file.size}
|
75 |
st.write(file_details)
|
76 |
df = pd.read_csv(data_file)
|
77 |
+
|
78 |
+
# Append new column to dataframe
|
79 |
+
address = ['Delhi', 'Bangalore', 'Chennai', 'Patna']
|
80 |
+
|
81 |
+
df['Address'] = address
|
82 |
+
|
83 |
st.dataframe(df)
|