Lisibonny commited on
Commit
c23fd30
1 Parent(s): e6f57be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ def main():
146
  end_probabilities = tf.nn.softmax(outputs.end_logits, axis=-1)[0]
147
  scores = start_probabilities[:, None] * end_probabilities[None, :]
148
  scores = tf.linalg.band_part(scores, 0, -1)
149
- scores = scores.flatten()
150
  st.write(scores)
151
  max_index = np.argmax(scores)
152
  st.write(max_index)
 
146
  end_probabilities = tf.nn.softmax(outputs.end_logits, axis=-1)[0]
147
  scores = start_probabilities[:, None] * end_probabilities[None, :]
148
  scores = tf.linalg.band_part(scores, 0, -1)
149
+ scores = tf.reshape(scores, [-1])
150
  st.write(scores)
151
  max_index = np.argmax(scores)
152
  st.write(max_index)