Spaces:
Runtime error
Runtime error
trying to use gif embed
Browse files
app.py
CHANGED
|
@@ -40,13 +40,13 @@ def get_image_data():
|
|
| 40 |
def segmentation_generation(image_name, c_width, n_top, n_gif_imgs):
|
| 41 |
print("GRADIO INPUTS:", image_name, c_width, n_top, n_gif_imgs)
|
| 42 |
|
| 43 |
-
html = "<div style=\"background-image: url(./imagenet_diego.png); height: 400px; width: 400px;\"></div>"
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
return html
|
| 51 |
|
| 52 |
cred_width = c_width
|
|
|
|
| 40 |
def segmentation_generation(image_name, c_width, n_top, n_gif_imgs):
|
| 41 |
print("GRADIO INPUTS:", image_name, c_width, n_top, n_gif_imgs)
|
| 42 |
|
| 43 |
+
# html = "<div style=\"background-image: url(./imagenet_diego.png); height: 400px; width: 400px;\"></div>"
|
| 44 |
|
| 45 |
+
html = (
|
| 46 |
+
"<div >"
|
| 47 |
+
"<img src='file/imagenet_diego.png' alt='picture of dog'/>"
|
| 48 |
+
+ "</div>"
|
| 49 |
+
)
|
| 50 |
return html
|
| 51 |
|
| 52 |
cred_width = c_width
|