Spaces:
Sleeping
Sleeping
Luis J Camargo commited on
Commit Β·
eef267c
1
Parent(s): 4367c0b
wait signs
Browse files
app.py
CHANGED
|
@@ -345,7 +345,10 @@ with gr.Blocks(theme=gr.themes.Ocean(), css=custom_css) as demo:
|
|
| 345 |
with gr.Column(scale=7):
|
| 346 |
with gr.Tabs():
|
| 347 |
with gr.Tab("π Markdown View"):
|
| 348 |
-
md_view = gr.Markdown(
|
|
|
|
|
|
|
|
|
|
| 349 |
with gr.Tab("πΌοΈ Visual Results"):
|
| 350 |
vis_view = gr.HTML('<div style="text-align:center; color:#94a3b8; padding: 50px;">Results will appear here.</div>')
|
| 351 |
with gr.Tab("π Raw Source"):
|
|
@@ -360,7 +363,7 @@ with gr.Blocks(theme=gr.themes.Ocean(), css=custom_css) as demo:
|
|
| 360 |
yield "β οΈ Please upload an image.", "", "", "{}", ""
|
| 361 |
return
|
| 362 |
|
| 363 |
-
yield "β Running prediction...", gr.update(value="<div style='text-align:center;'>β Processing...</div>"), "β Processing...", "{}", gr.update(value="<div style='text-align:center;'>β Generating map...</div>")
|
| 364 |
|
| 365 |
for res_preview, res_vis, res_raw, res_json, res_map in run_inference(img, mode, chart, unwarp, progress=progress):
|
| 366 |
yield res_preview, res_vis, res_raw, res_json, res_map
|
|
|
|
| 345 |
with gr.Column(scale=7):
|
| 346 |
with gr.Tabs():
|
| 347 |
with gr.Tab("π Markdown View"):
|
| 348 |
+
md_view = gr.Markdown(
|
| 349 |
+
"*Results will appear here.*",
|
| 350 |
+
latex_delimiters=LATEX_DELIMS, elem_classes="output-box"
|
| 351 |
+
)
|
| 352 |
with gr.Tab("πΌοΈ Visual Results"):
|
| 353 |
vis_view = gr.HTML('<div style="text-align:center; color:#94a3b8; padding: 50px;">Results will appear here.</div>')
|
| 354 |
with gr.Tab("π Raw Source"):
|
|
|
|
| 363 |
yield "β οΈ Please upload an image.", "", "", "{}", ""
|
| 364 |
return
|
| 365 |
|
| 366 |
+
yield gr.update(value="**β Running prediction...**"), gr.update(value="<div style='text-align:center;'>β Processing...</div>"), "β Processing...", "{}", gr.update(value="<div style='text-align:center;'>β Generating map...</div>")
|
| 367 |
|
| 368 |
for res_preview, res_vis, res_raw, res_json, res_map in run_inference(img, mode, chart, unwarp, progress=progress):
|
| 369 |
yield res_preview, res_vis, res_raw, res_json, res_map
|