Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,9 +104,9 @@ with gr.Blocks() as demo:
|
|
| 104 |
|
| 105 |
# JavaScript for managing the pop-up
|
| 106 |
gr.HTML("""
|
| 107 |
-
<div id="popup" style="display: none; position: fixed; left: 50%; top:
|
| 108 |
background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 109 |
-
z-index: 1000; text-align: center; width: 300px;
|
| 110 |
<img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
|
| 111 |
<h2 id="popup-title" style="margin-top: 20px; color: #444;"></h2>
|
| 112 |
<p id="popup-description" style="margin-top: 10px; font-size: 16px; color: #666;"></p>
|
|
|
|
| 104 |
|
| 105 |
# JavaScript for managing the pop-up
|
| 106 |
gr.HTML("""
|
| 107 |
+
<div id="popup" style="display: none; position: fixed; left: 50%; top:0; justify-content: center; align-items: center;
|
| 108 |
background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 109 |
+
z-index: 1000; text-align: center; width: 300px;">
|
| 110 |
<img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
|
| 111 |
<h2 id="popup-title" style="margin-top: 20px; color: #444;"></h2>
|
| 112 |
<p id="popup-description" style="margin-top: 10px; font-size: 16px; color: #666;"></p>
|