Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def predict(query,data):
|
|
134 |
|
135 |
probs_sum = 0
|
136 |
probs = softmax(sorted(scores,reverse = True)[:k])
|
137 |
-
table = {"Passage":[],"Answer":[],"Probabilities":[]
|
138 |
|
139 |
for i, (passage, _, names) in enumerate(doc_score_pairs[:k]):
|
140 |
passage = passage.replace("\n","")
|
|
|
134 |
|
135 |
probs_sum = 0
|
136 |
probs = softmax(sorted(scores,reverse = True)[:k])
|
137 |
+
table = {"Passage":[],"Answer":[],"Probabilities":[]}
|
138 |
|
139 |
for i, (passage, _, names) in enumerate(doc_score_pairs[:k]):
|
140 |
passage = passage.replace("\n","")
|