Spaces:
Runtime error
Runtime error
Commit
·
c7626f8
1
Parent(s):
4fca62f
Update app.py
Browse files
app.py
CHANGED
@@ -76,18 +76,18 @@ if sidebar_selectbox == "Bulk upload and mark":
|
|
76 |
st.write(file_details)
|
77 |
df = pd.read_csv(data_file)
|
78 |
|
79 |
-
# Get length of df.shape
|
80 |
-
total_rows = df.shape[0]
|
81 |
|
82 |
similarity_scores = []
|
83 |
|
84 |
-
for index in
|
85 |
|
86 |
# Create an empty sentence list
|
87 |
sentences = []
|
88 |
|
89 |
# Compare the setences two by two
|
90 |
-
sentence_comparison = df
|
91 |
sentences.append(sentence_reference)
|
92 |
sentences.append(sentence_comparison)
|
93 |
|
|
|
76 |
st.write(file_details)
|
77 |
df = pd.read_csv(data_file)
|
78 |
|
79 |
+
# Get length of df.shape (might not need this)
|
80 |
+
#total_rows = df.shape[0]
|
81 |
|
82 |
similarity_scores = []
|
83 |
|
84 |
+
for index in df.index:
|
85 |
|
86 |
# Create an empty sentence list
|
87 |
sentences = []
|
88 |
|
89 |
# Compare the setences two by two
|
90 |
+
sentence_comparison = df['sentences'][index]
|
91 |
sentences.append(sentence_reference)
|
92 |
sentences.append(sentence_comparison)
|
93 |
|