gsacco15 commited on
Commit
171a25b
·
verified ·
1 Parent(s): d4fa371

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -165,4 +165,18 @@ def analyze_room(image):
165
  }
166
  }
167
 
168
- return overlay_img, results
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  }
166
  }
167
 
168
+ return overlay_img, results
169
+
170
+ # Create and launch Gradio interface
171
+ demo = gr.Interface(
172
+ fn=analyze_room,
173
+ inputs=gr.Image(type="pil", label="Upload Room Photo"),
174
+ outputs=[
175
+ gr.Image(label="Segmentation Overlay"),
176
+ gr.JSON(label="Room Analysis Results")
177
+ ],
178
+ title="Room Estimator",
179
+ description="Upload a room photo to get measurements and material estimates"
180
+ )
181
+
182
+ demo.launch()