Update app.py
Browse files
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 =
|
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)
|