rmayormartins commited on
Commit
2d2ff9a
·
1 Parent(s): cc5e526

Subindo arquivos3331

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,16 +39,16 @@ def image_inspector(uploaded_file):
39
  formatted_details = "\n".join([f"{key}: {value}" for key, value in details.items()])
40
  return formatted_details
41
 
42
-
43
-
44
 
45
  iface = gr.Interface(
46
  fn=image_inspector,
47
- inputs=gr.File(label="Upload de Imagem"),
48
  outputs="text",
49
  title="Inspetor de Imagem",
50
  description="Faça o upload de uma imagem (.jpg, .png, .bmp, etc.) e veja detalhes sobre ela.",
51
- examples=[["example1.jpg"]]
52
  )
53
 
54
  if __name__ == "__main__":
 
39
  formatted_details = "\n".join([f"{key}: {value}" for key, value in details.items()])
40
  return formatted_details
41
 
42
+ # Caminho relativo para a imagem de exemplo
43
+ example_image_path = "example1.jpg"
44
 
45
  iface = gr.Interface(
46
  fn=image_inspector,
47
+ inputs=gr.Image(type="filepath", label="Upload de Imagem"),
48
  outputs="text",
49
  title="Inspetor de Imagem",
50
  description="Faça o upload de uma imagem (.jpg, .png, .bmp, etc.) e veja detalhes sobre ela.",
51
+ examples=[[example_image_path]]
52
  )
53
 
54
  if __name__ == "__main__":