rmayormartins commited on
Commit
6db1028
·
1 Parent(s): 2e5bff4

Subindo arquivos11

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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.inputs.Image(type="pil"),
82
- outputs=[gr.outputs.Image(type="pil"), gr.outputs.Textbox(), gr.outputs.Audio(type="file")],
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