Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,13 +180,15 @@ with gr.Blocks() as demo:
|
|
| 180 |
gallery_items_display = [
|
| 181 |
(
|
| 182 |
item[0],
|
| 183 |
-
f"
|
|
|
|
| 184 |
<img src='{item[0]}' style='width: 150px; height: auto; margin-right: 10px;'>
|
| 185 |
<div style='flex-grow: 1;'>
|
| 186 |
<strong>{item[2]}</strong><br>
|
| 187 |
Video ID: {item[1]}
|
| 188 |
</div>
|
| 189 |
-
</div>
|
|
|
|
| 190 |
) for item in gallery_items
|
| 191 |
]
|
| 192 |
return gallery_items_display, "", gr.update(visible=False)
|
|
|
|
| 180 |
gallery_items_display = [
|
| 181 |
(
|
| 182 |
item[0],
|
| 183 |
+
f"""
|
| 184 |
+
<div style='display: flex; align-items: center;'>
|
| 185 |
<img src='{item[0]}' style='width: 150px; height: auto; margin-right: 10px;'>
|
| 186 |
<div style='flex-grow: 1;'>
|
| 187 |
<strong>{item[2]}</strong><br>
|
| 188 |
Video ID: {item[1]}
|
| 189 |
</div>
|
| 190 |
+
</div>
|
| 191 |
+
"""
|
| 192 |
) for item in gallery_items
|
| 193 |
]
|
| 194 |
return gallery_items_display, "", gr.update(visible=False)
|