Luis J Camargo commited on
Commit
eef267c
Β·
1 Parent(s): 4367c0b

wait signs

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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(latex_delimiters=LATEX_DELIMS, elem_classes="output-box")
 
 
 
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