Update app.py
Browse files
app.py
CHANGED
|
@@ -133,6 +133,8 @@ with gr.Blocks(title="Responsive Image Generator") as app:
|
|
| 133 |
with gr.Column():
|
| 134 |
input_image = gr.Image(
|
| 135 |
label="Upload Original Image",
|
|
|
|
|
|
|
| 136 |
)
|
| 137 |
process_btn = gr.Button("Process Image")
|
| 138 |
|
|
@@ -151,4 +153,4 @@ with gr.Blocks(title="Responsive Image Generator") as app:
|
|
| 151 |
)
|
| 152 |
|
| 153 |
# Launch the app with share=True for public access
|
| 154 |
-
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 |
+
source="upload" # Ensure we only accept uploads
|
| 138 |
)
|
| 139 |
process_btn = gr.Button("Process Image")
|
| 140 |
|
|
|
|
| 153 |
)
|
| 154 |
|
| 155 |
# Launch the app with share=True for public access
|
| 156 |
+
app.launch())
|