cnph001 commited on
Commit
b0edb74
·
verified ·
1 Parent(s): 6430025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
 
4
  IMAGE_PATH = "floor_layout.png"
5
 
6
- # Setup your table layout map
7
  TABLES_LAYOUT = {
8
  "Table 1": {"x": (50, 180), "y": (50, 180)},
9
  "Table 2": {"x": (220, 350), "y": (50, 180)},
@@ -44,4 +44,5 @@ with gr.Blocks() as demo:
44
 
45
  floor_plan.select(fn=handle_image_click, inputs=None, outputs=status_output)
46
 
47
- demo.launch()
 
 
3
 
4
  IMAGE_PATH = "floor_layout.png"
5
 
6
+ # Setup your table layout map (Adjust these coordinates for your PNG!)
7
  TABLES_LAYOUT = {
8
  "Table 1": {"x": (50, 180), "y": (50, 180)},
9
  "Table 2": {"x": (220, 350), "y": (50, 180)},
 
44
 
45
  floor_plan.select(fn=handle_image_click, inputs=None, outputs=status_output)
46
 
47
+ # Disable SSR to bypass the dual-port container constraint on Hugging Face
48
+ demo.launch(ssr_mode=False)