Lisibonny commited on
Commit
74f3c73
1 Parent(s): 1947b31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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']