Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,13 +29,12 @@ def convert_image(image, target_format):
|
|
29 |
interface = gr.Interface(
|
30 |
fn=convert_image,
|
31 |
inputs=[
|
32 |
-
gr.Image(label="Upload Image", type="filepath"), # Atur tinggi gambar input
|
33 |
gr.Dropdown(label="Select Target Format", choices=supported_formats)
|
34 |
],
|
35 |
outputs=gr.File(label="Converted Image"),
|
36 |
title="Universal Image Format Converter",
|
37 |
description="Upload an image and select any target format for conversion. Supports all formats recognized by Pillow.",
|
38 |
-
live=True,
|
39 |
css="footer {visibility: hidden}"
|
40 |
)
|
41 |
|
|
|
29 |
interface = gr.Interface(
|
30 |
fn=convert_image,
|
31 |
inputs=[
|
32 |
+
gr.Image(label="Upload Image", type="filepath", height=512), # Atur tinggi gambar input
|
33 |
gr.Dropdown(label="Select Target Format", choices=supported_formats)
|
34 |
],
|
35 |
outputs=gr.File(label="Converted Image"),
|
36 |
title="Universal Image Format Converter",
|
37 |
description="Upload an image and select any target format for conversion. Supports all formats recognized by Pillow.",
|
|
|
38 |
css="footer {visibility: hidden}"
|
39 |
)
|
40 |
|