Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def cross_encode():
|
|
134 |
def display_as_table(model, score='score'):
|
135 |
# Display the df with text and scores as a table
|
136 |
index=1
|
137 |
-
df = pd.DataFrame([index, passages[hit['corpus_id']]) for hit in model[0:2]], columns=['Index', 'Text'])
|
138 |
index+=1
|
139 |
|
140 |
return df
|
|
|
134 |
def display_as_table(model, score='score'):
|
135 |
# Display the df with text and scores as a table
|
136 |
index=1
|
137 |
+
df = pd.DataFrame([index], passages[hit['corpus_id']]) for hit in model[0:2]], columns=['Index', 'Text'])
|
138 |
index+=1
|
139 |
|
140 |
return df
|