Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,7 @@ if device == "cpu":
|
|
| 89 |
|
| 90 |
# Create the Gradio interface
|
| 91 |
image_description_interface = gr.Interface(
|
|
|
|
| 92 |
fn=describe_image,
|
| 93 |
inputs=[
|
| 94 |
gr.Image(label="Upload Image", type="pil"),
|
|
@@ -97,7 +98,6 @@ image_description_interface = gr.Interface(
|
|
| 97 |
outputs=gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True),
|
| 98 |
live=False,
|
| 99 |
title="# **[Florence-2 Models Image Captions](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**",
|
| 100 |
-
theme=="bethecloud/storj_theme",
|
| 101 |
description=description
|
| 102 |
)
|
| 103 |
|
|
|
|
| 89 |
|
| 90 |
# Create the Gradio interface
|
| 91 |
image_description_interface = gr.Interface(
|
| 92 |
+
theme=="bethecloud/storj_theme",
|
| 93 |
fn=describe_image,
|
| 94 |
inputs=[
|
| 95 |
gr.Image(label="Upload Image", type="pil"),
|
|
|
|
| 98 |
outputs=gr.Textbox(label="Generated Caption", lines=4, show_copy_button=True),
|
| 99 |
live=False,
|
| 100 |
title="# **[Florence-2 Models Image Captions](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**",
|
|
|
|
| 101 |
description=description
|
| 102 |
)
|
| 103 |
|