Spaces:
Running
on
T4
Running
on
T4
Julien Simon
commited on
Commit
•
ea11adf
1
Parent(s):
8a496a8
Replace deprecated append() with concat()
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def find_sentences(query, hits):
|
|
70 |
"Text": corpus[corpus_id][:80],
|
71 |
"Score": "{:.2f}".format(hit["score"]),
|
72 |
}
|
73 |
-
|
74 |
break
|
75 |
return output
|
76 |
|
|
|
70 |
"Text": corpus[corpus_id][:80],
|
71 |
"Score": "{:.2f}".format(hit["score"]),
|
72 |
}
|
73 |
+
output = pd.concat([output, pd.DataFrame([new_row])], ignore_index=True)
|
74 |
break
|
75 |
return output
|
76 |
|