Lisibonny commited on
Commit
ab8e818
1 Parent(s): f431d52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -140,13 +140,12 @@ def main():
140
  answer=tokenizer.decode(predict_answer_tokens)
141
 
142
  if (len(answer)>0):
143
-
144
- # Extract 5 greatest values fo start and end scores with indeces
145
  answer_start_scores= tf.math.reduce_sum(answer_start_scores)
146
  answer_end_scores= tf.math.reduce_sum(answer_end_scores)
147
  score = answer_start_scores*answer_end_scores
148
- st.write(f'Aqui {answer}' )
149
- st.write(score)
150
  cantidad_respuestas = cantidad_respuestas + 1
151
  df_answer.loc[i, "answer"] = answer
152
  lista_noticias_respuestas.append(df_answer.loc[i].to_frame().T)
 
140
  answer=tokenizer.decode(predict_answer_tokens)
141
 
142
  if (len(answer)>0):
143
+
 
144
  answer_start_scores= tf.math.reduce_sum(answer_start_scores)
145
  answer_end_scores= tf.math.reduce_sum(answer_end_scores)
146
  score = answer_start_scores*answer_end_scores
147
+ st.write(f'Aqui {answer_start_scores}' )
148
+ st.write(answer_end_scores)
149
  cantidad_respuestas = cantidad_respuestas + 1
150
  df_answer.loc[i, "answer"] = answer
151
  lista_noticias_respuestas.append(df_answer.loc[i].to_frame().T)