Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,11 +15,11 @@ def convert_image(image, output_format):
|
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
gr.Markdown("# Simple Image Converter")
|
| 17 |
with gr.Row():
|
| 18 |
-
input_image = gr.File(label="Upload Image", type="
|
| 19 |
output_format = gr.Radio(["JPG", "PNG"], label="Convert To")
|
| 20 |
convert_button = gr.Button("Convert")
|
| 21 |
output_image = gr.File(label="Download Converted Image")
|
| 22 |
|
| 23 |
convert_button.click(convert_image, inputs=[input_image, output_format], outputs=output_image)
|
| 24 |
|
| 25 |
-
demo.launch()
|
|
|
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
gr.Markdown("# Simple Image Converter")
|
| 17 |
with gr.Row():
|
| 18 |
+
input_image = gr.File(label="Upload Image", type="filepath")
|
| 19 |
output_format = gr.Radio(["JPG", "PNG"], label="Convert To")
|
| 20 |
convert_button = gr.Button("Convert")
|
| 21 |
output_image = gr.File(label="Download Converted Image")
|
| 22 |
|
| 23 |
convert_button.click(convert_image, inputs=[input_image, output_format], outputs=output_image)
|
| 24 |
|
| 25 |
+
demo.launch()
|