Spaces:
Running
Running
Upload app/app.py with huggingface_hub
Browse files- app/app.py +6 -4
app/app.py
CHANGED
|
@@ -163,10 +163,7 @@ with col1:
|
|
| 163 |
if output_path and output_path.exists():
|
| 164 |
output_path.unlink()
|
| 165 |
|
| 166 |
-
|
| 167 |
-
st.divider()
|
| 168 |
-
st.info("Ground truth label (from `.align` file)")
|
| 169 |
-
st.code(ground_truth, language=None)
|
| 170 |
|
| 171 |
# ββ Column 2: Model inference βββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 172 |
with col2:
|
|
@@ -201,6 +198,11 @@ with col2:
|
|
| 201 |
|
| 202 |
st.divider()
|
| 203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
# ββ Final prediction ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 205 |
prediction = tf.strings.reduce_join(
|
| 206 |
num_to_char(decoded[0])
|
|
|
|
| 163 |
if output_path and output_path.exists():
|
| 164 |
output_path.unlink()
|
| 165 |
|
| 166 |
+
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
# ββ Column 2: Model inference βββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 169 |
with col2:
|
|
|
|
| 198 |
|
| 199 |
st.divider()
|
| 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])
|