LPX commited on
Commit
e2101d4
·
1 Parent(s): aa96f77

minor: bug fixes

Browse files

- Changed the Gradio interface variable from `iface` to `demo` for improved readability.
- Updated the launch method to include the `share=True` parameter for sharing the interface.

Files changed (1) hide show
  1. app_mcp.py +2 -2
app_mcp.py CHANGED
@@ -270,7 +270,7 @@ def predict_image_with_json(img, confidence_threshold, augment_methods, rotate_d
270
  ] for r in results]
271
  return img_pil, forensics_images, table_rows, results
272
 
273
- with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;} .ms-gr-ant-welcome-icon{ height:unset !important;} .tabs{margin-top:10px;}") as iface:
274
  with ms.Application() as app:
275
  with antd.ConfigProvider():
276
  antdx.Welcome(
@@ -339,4 +339,4 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
339
 
340
 
341
  # Launch the interface
342
- iface.launch()
 
270
  ] for r in results]
271
  return img_pil, forensics_images, table_rows, results
272
 
273
+ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ overflow-y: hidden !important;} .ms-gr-ant-welcome-icon{ height:unset !important;} .tabs{margin-top:10px;}") as demo:
274
  with ms.Application() as app:
275
  with antd.ConfigProvider():
276
  antdx.Welcome(
 
339
 
340
 
341
  # Launch the interface
342
+ demo.launch(share=True)