Rammohan0504 commited on
Commit
87744f3
·
verified ·
1 Parent(s): dfc1438

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,10 +106,10 @@ with gr.Blocks() as demo:
106
 
107
  # JavaScript for managing the pop-up
108
  gr.HTML("""
109
- <div id="popup" style="display: none; position: relative;cursor: pointer;-webkit-user-select: none;
110
  -moz-user-select: none;
111
  -ms-user-select: none;
112
- user-select: none; left: 50%; transform: translate(-50%, 0);
113
  background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
114
  z-index: 1000; text-align: center; width: 300px;">
115
  <img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
 
106
 
107
  # JavaScript for managing the pop-up
108
  gr.HTML("""
109
+ <div id="popup" style="display: none; position: fixed;cursor: pointer;-webkit-user-select: none;
110
  -moz-user-select: none;
111
  -ms-user-select: none;
112
+ user-select: none; left: 50%; transform: translate(-50%, 100%);
113
  background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
114
  z-index: 1000; text-align: center; width: 300px;">
115
  <img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">