Spaces:
Running
Running
Upload app/app.py with huggingface_hub
Browse files- app/app.py +3 -2
app/app.py
CHANGED
|
@@ -196,13 +196,14 @@ with col2:
|
|
| 196 |
decoded = tf.keras.backend.ctc_decode(yhat, input_length=[75], greedy=True)[0][0].numpy()
|
| 197 |
st.code(str(decoded[0].tolist()), language=None)
|
| 198 |
|
| 199 |
-
|
| 200 |
|
| 201 |
# ββ Ground truth (moved here) βββββββββββββββββββββββββββββββββββββββββββββ
|
| 202 |
st.divider()
|
| 203 |
st.info("Ground truth label (from `.align` file)")
|
| 204 |
st.code(ground_truth, language=None)
|
| 205 |
-
|
|
|
|
| 206 |
# ββ Final prediction ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 207 |
prediction = tf.strings.reduce_join(
|
| 208 |
num_to_char(decoded[0])
|
|
|
|
| 196 |
decoded = tf.keras.backend.ctc_decode(yhat, input_length=[75], greedy=True)[0][0].numpy()
|
| 197 |
st.code(str(decoded[0].tolist()), language=None)
|
| 198 |
|
| 199 |
+
|
| 200 |
|
| 201 |
# ββ Ground truth (moved here) βββββββββββββββββββββββββββββββββββββββββββββ
|
| 202 |
st.divider()
|
| 203 |
st.info("Ground truth label (from `.align` file)")
|
| 204 |
st.code(ground_truth, language=None)
|
| 205 |
+
|
| 206 |
+
st.divider()
|
| 207 |
# ββ Final prediction ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 208 |
prediction = tf.strings.reduce_join(
|
| 209 |
num_to_char(decoded[0])
|