Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,7 +140,7 @@ with gr.Blocks() as demo:
|
|
| 140 |
|
| 141 |
# JavaScript for managing the pop-up
|
| 142 |
gr.HTML(f"""
|
| 143 |
-
<div id="popup" style="display: none; position: fixed;
|
| 144 |
background-color: white; padding: 20px; border-radius: 10px;
|
| 145 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; width: 500px;">
|
| 146 |
<img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
|
|
|
|
| 140 |
|
| 141 |
# JavaScript for managing the pop-up
|
| 142 |
gr.HTML(f"""
|
| 143 |
+
<div id="popup" style="display: none; position: fixed; left: 50%; transform: translate(-50%, -50%);
|
| 144 |
background-color: white; padding: 20px; border-radius: 10px;
|
| 145 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; width: 500px;">
|
| 146 |
<img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
|