Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +1 -1
- requirements.txt +0 -2
app.py
CHANGED
|
@@ -107,7 +107,7 @@ def process_floor_plan(image, zoom_factor, color_choice, selected_layers):
|
|
| 107 |
except Exception as e:
|
| 108 |
return [], json.dumps({"error": str(e)}, indent=2)
|
| 109 |
|
| 110 |
-
# Gradio Interface
|
| 111 |
with gr.Blocks(title="Floor Plan Detection") as demo:
|
| 112 |
gr.Markdown("# 🏗️ Floor Plan Detection")
|
| 113 |
gr.Markdown("Upload a floor plan image to detect rooms, doors, and windows.")
|
|
|
|
| 107 |
except Exception as e:
|
| 108 |
return [], json.dumps({"error": str(e)}, indent=2)
|
| 109 |
|
| 110 |
+
# Gradio 5.x Interface
|
| 111 |
with gr.Blocks(title="Floor Plan Detection") as demo:
|
| 112 |
gr.Markdown("# 🏗️ Floor Plan Detection")
|
| 113 |
gr.Markdown("Upload a floor plan image to detect rooms, doors, and windows.")
|
requirements.txt
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
-
gradio==4.44.0
|
| 2 |
-
huggingface_hub==1.21.1
|
| 3 |
pillow
|
| 4 |
requests
|
|
|
|
|
|
|
|
|
|
| 1 |
pillow
|
| 2 |
requests
|