Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,10 +107,12 @@ popup_js = """
|
|
| 107 |
"""
|
| 108 |
|
| 109 |
# HTML structure for the popup
|
| 110 |
-
|
|
|
|
| 111 |
<div id="custom-popup"
|
| 112 |
-
|
| 113 |
</div>
|
|
|
|
| 114 |
|
| 115 |
|
| 116 |
# Main Gradio app
|
|
|
|
| 107 |
"""
|
| 108 |
|
| 109 |
# HTML structure for the popup
|
| 110 |
+
popup_html = """
|
| 111 |
+
<div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div>
|
| 112 |
<div id="custom-popup"
|
| 113 |
+
style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; max-width: 90%; background: white; padding: 20px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); display: none; z-index: 1000; position: relative;">
|
| 114 |
</div>
|
| 115 |
+
"""
|
| 116 |
|
| 117 |
|
| 118 |
# Main Gradio app
|