Rammohan0504 commited on
Commit
ad8222a
·
verified ·
1 Parent(s): 4eb3be4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ with gr.Blocks() as demo:
60
 
61
  # JavaScript for managing the pop-up
62
  gr.HTML("""
63
- <div id="popup" style="display: none; position:fixed; left: 50%; transform: translate(-50%,0);
64
  background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
65
  z-index: 1000; text-align: center; width: 300px;">
66
  <img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">
 
60
 
61
  # JavaScript for managing the pop-up
62
  gr.HTML("""
63
+ <div id="popup" style="display: flex; justify-content: center; align-items: center;
64
  background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
65
  z-index: 1000; text-align: center; width: 300px;">
66
  <img id="popup-image" src="" alt="" style="width: 100%; height: auto; border-radius: 10px;">