Update app.py
Browse files
app.py
CHANGED
@@ -133,8 +133,9 @@ def cross_encode():
|
|
133 |
|
134 |
def display_as_table(model, score='score'):
|
135 |
# Display the df with text and scores as a table
|
136 |
-
|
137 |
-
df['
|
|
|
138 |
|
139 |
return df
|
140 |
|
|
|
133 |
|
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
|
141 |
|