Spaces:
Runtime error
Runtime error
Commit
·
6db1028
1
Parent(s):
2e5bff4
Subindo arquivos11
Browse files
app.py
CHANGED
@@ -73,13 +73,12 @@ def process_image(image):
|
|
73 |
|
74 |
# Carregar imagem de exemplo diretamente do código
|
75 |
example_image_path = "example1.JPG"
|
76 |
-
example_image = Image.open(example_image_path)
|
77 |
|
78 |
# Interface Gradio
|
79 |
iface = gr.Interface(
|
80 |
fn=process_image,
|
81 |
-
inputs=gr.
|
82 |
-
outputs=[gr.
|
83 |
examples=[example_image_path]
|
84 |
)
|
85 |
|
|
|
73 |
|
74 |
# Carregar imagem de exemplo diretamente do código
|
75 |
example_image_path = "example1.JPG"
|
|
|
76 |
|
77 |
# Interface Gradio
|
78 |
iface = gr.Interface(
|
79 |
fn=process_image,
|
80 |
+
inputs=gr.Image(type="pil"),
|
81 |
+
outputs=[gr.Image(type="pil"), gr.Textbox(), gr.Audio(type="file")],
|
82 |
examples=[example_image_path]
|
83 |
)
|
84 |
|