Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|
| 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()
|