Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def main():
|
|
178 |
#predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
|
179 |
#answer=tokenizer.decode(predict_answer_tokens)
|
180 |
|
181 |
-
if (result['answer'])>0):
|
182 |
cantidad_respuestas = cantidad_respuestas + 1
|
183 |
df_answer.loc[i, "answer"] = result.loc['answer']
|
184 |
df_answer.loc[i, "score"]= result.loc['score']
|
|
|
178 |
#predict_answer_tokens = inputs.input_ids[0, answer_start_index : answer_end_index + 1]
|
179 |
#answer=tokenizer.decode(predict_answer_tokens)
|
180 |
|
181 |
+
if (len(result['answer'])>0):
|
182 |
cantidad_respuestas = cantidad_respuestas + 1
|
183 |
df_answer.loc[i, "answer"] = result.loc['answer']
|
184 |
df_answer.loc[i, "score"]= result.loc['score']
|