Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,8 +133,7 @@ with gr.Blocks(title="Responsive Image Generator") as app:
|
|
| 133 |
with gr.Column():
|
| 134 |
input_image = gr.Image(
|
| 135 |
label="Upload Original Image",
|
| 136 |
-
type="numpy"
|
| 137 |
-
source="upload" # Ensure we only accept uploads
|
| 138 |
)
|
| 139 |
process_btn = gr.Button("Process Image")
|
| 140 |
|
|
@@ -152,5 +151,4 @@ with gr.Blocks(title="Responsive Image Generator") as app:
|
|
| 152 |
outputs=[output_zip, output_html, output_message]
|
| 153 |
)
|
| 154 |
|
| 155 |
-
# Launch the app with share=True for public access
|
| 156 |
app.launch()
|
|
|
|
| 133 |
with gr.Column():
|
| 134 |
input_image = gr.Image(
|
| 135 |
label="Upload Original Image",
|
| 136 |
+
type="numpy" # Using numpy type for better compatibility
|
|
|
|
| 137 |
)
|
| 138 |
process_btn = gr.Button("Process Image")
|
| 139 |
|
|
|
|
| 151 |
outputs=[output_zip, output_html, output_message]
|
| 152 |
)
|
| 153 |
|
|
|
|
| 154 |
app.launch()
|