Spaces:
Running
Running
file first
Browse files
app.py
CHANGED
@@ -241,8 +241,9 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
241 |
gr.HTML(read_file("links.html"))
|
242 |
with gr.Row():
|
243 |
with gr.Column():
|
244 |
-
image = gr.Image(sources=[],image_mode='RGB', elem_id="Image", type="filepath", label="Preview WebP")
|
245 |
file = gr.File(label="WebP Upload")
|
|
|
|
|
246 |
#file.select(fn=test_echo,inputs=[file])
|
247 |
|
248 |
file.upload(fn=test_echo,inputs=[file],outputs=[image])
|
|
|
241 |
gr.HTML(read_file("links.html"))
|
242 |
with gr.Row():
|
243 |
with gr.Column():
|
|
|
244 |
file = gr.File(label="WebP Upload")
|
245 |
+
image = gr.Image(sources=[],image_mode='RGB', elem_id="Image", type="filepath", label="Preview WebP")
|
246 |
+
|
247 |
#file.select(fn=test_echo,inputs=[file])
|
248 |
|
249 |
file.upload(fn=test_echo,inputs=[file],outputs=[image])
|