DHEIVER commited on
Commit
ae8e572
Β·
verified Β·
1 Parent(s): d66931e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="cyan")) a
72
  with gr.Row():
73
  with gr.Column(scale=1):
74
  gr.Markdown("### πŸ“Έ Carregue uma Imagem")
75
- image_input = gr.Image(type="pil", label="Upload de Imagem", height=300) # Removido 'tool="editor"'
76
 
77
  with gr.Column(scale=2):
78
  gr.Markdown("### πŸ” Resultados")
@@ -116,6 +116,12 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="cyan")) a
116
  ### 🌟 Entre em Contato
117
  - Quer saber mais? Visite nosso [site](https://example.com) ou nos siga nas redes sociais!
118
  """)
 
 
 
 
 
 
119
 
120
  # Iniciar o aplicativo
121
  demo.launch()
 
72
  with gr.Row():
73
  with gr.Column(scale=1):
74
  gr.Markdown("### πŸ“Έ Carregue uma Imagem")
75
+ image_input = gr.Image(type="pil", label="Upload de Imagem", height=300)
76
 
77
  with gr.Column(scale=2):
78
  gr.Markdown("### πŸ” Resultados")
 
116
  ### 🌟 Entre em Contato
117
  - Quer saber mais? Visite nosso [site](https://example.com) ou nos siga nas redes sociais!
118
  """)
119
+
120
+ # Adicionar exemplos prΓ©-definidos
121
+ examples = [
122
+ "https://huggingface.co/spaces/DHEIVER/blip-image-captioning-base/blob/main/img.jpg"
123
+ ]
124
+ gr.Examples(examples, inputs=image_input)
125
 
126
  # Iniciar o aplicativo
127
  demo.launch()