Spaces:
Running
Running
Vincentqyw
commited on
Commit
·
af04753
1
Parent(s):
9623ac0
update: app
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import gradio as gr
|
|
| 2 |
from pathlib import Path
|
| 3 |
from PIL import Image
|
| 4 |
|
| 5 |
-
|
| 6 |
def get_supported_formats():
|
| 7 |
"""
|
| 8 |
A function that retrieves the supported formats of images.
|
|
@@ -135,8 +134,8 @@ def run(server_name: str = "127.0.0.1", server_port: int = 7860):
|
|
| 135 |
value=".webp",
|
| 136 |
)
|
| 137 |
with gr.Row():
|
| 138 |
-
proc_btn = gr.Button("Run Convert", variant="primary")
|
| 139 |
reset_btn = gr.Button("Clear Images", variant="secondary")
|
|
|
|
| 140 |
|
| 141 |
with gr.Column():
|
| 142 |
output_file = gr.File(label="Converted WebP")
|
|
|
|
| 2 |
from pathlib import Path
|
| 3 |
from PIL import Image
|
| 4 |
|
|
|
|
| 5 |
def get_supported_formats():
|
| 6 |
"""
|
| 7 |
A function that retrieves the supported formats of images.
|
|
|
|
| 134 |
value=".webp",
|
| 135 |
)
|
| 136 |
with gr.Row():
|
|
|
|
| 137 |
reset_btn = gr.Button("Clear Images", variant="secondary")
|
| 138 |
+
proc_btn = gr.Button("Run Convert", variant="primary")
|
| 139 |
|
| 140 |
with gr.Column():
|
| 141 |
output_file = gr.File(label="Converted WebP")
|