Spaces:
Sleeping
Sleeping
IZERE HIRWA Roger
commited on
Commit
·
25e5690
1
Parent(s):
02d423d
app.py
CHANGED
|
@@ -180,19 +180,6 @@ with gr.Blocks(title="Roof Renovation System", theme=gr.themes.Soft()) as demo:
|
|
| 180 |
output_image = gr.Image(label="Results", interactive=False)
|
| 181 |
sheets_output = gr.Number(label="Sheets Needed", interactive=False)
|
| 182 |
|
| 183 |
-
# Examples
|
| 184 |
-
gr.Examples(
|
| 185 |
-
examples=[
|
| 186 |
-
["examples/house1.jpg", 120, 0.6, 1.8, "gray shingle pattern"],
|
| 187 |
-
["examples/house2.jpg", 150, 0.4, 2.2, "terracotta tile pattern"],
|
| 188 |
-
["examples/house3.jpg", 200, 0.5, 2.0, "metal roof with visible seams"]
|
| 189 |
-
],
|
| 190 |
-
inputs=[image_input, scale_input, sheet_width, sheet_height, pattern_prompt],
|
| 191 |
-
outputs=[output_image, sheets_output],
|
| 192 |
-
fn=full_process,
|
| 193 |
-
cache_examples=True
|
| 194 |
-
)
|
| 195 |
-
|
| 196 |
submit_btn.click(
|
| 197 |
fn=full_process,
|
| 198 |
inputs=[image_input, scale_input, sheet_width, sheet_height, pattern_prompt],
|
|
|
|
| 180 |
output_image = gr.Image(label="Results", interactive=False)
|
| 181 |
sheets_output = gr.Number(label="Sheets Needed", interactive=False)
|
| 182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
submit_btn.click(
|
| 184 |
fn=full_process,
|
| 185 |
inputs=[image_input, scale_input, sheet_width, sheet_height, pattern_prompt],
|