imorcillo commited on
Commit
4722af0
·
verified ·
1 Parent(s): 2f400ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -166,20 +166,19 @@ button.selected::after{
166
 
167
 
168
  #popup-overlay {
 
169
  position: fixed;
170
  top: 0;
171
  left: 0;
172
  width: 100vw;
173
  height: 100vh;
174
- display: flex;
175
  justify-content: center;
176
  align-items: center;
177
  background: rgba(0,0,0,0.5);
178
  z-index: 999;
179
  flex-direction: column;
180
  }
181
-
182
- #popup-text {
183
  background: white;
184
  padding: 20px;
185
  border-radius: 10px;
@@ -187,7 +186,6 @@ button.selected::after{
187
  width: 340px;
188
  text-align: center;
189
  }
190
-
191
  #popup-button {
192
  background-color: #5b65a7;
193
  color: white;
@@ -197,7 +195,6 @@ button.selected::after{
197
  border: none;
198
  cursor: pointer;
199
  }
200
-
201
  #popup-button:hover {
202
  background-color: #3c4687;
203
  }
@@ -275,8 +272,7 @@ with demo:
275
 
276
  popup = gr.Column(visible=False, elem_id="popup-overlay")
277
  with popup:
278
- gr.Column(elem_id="popup-box")
279
- with gr.Column(elem_id="popup-inner"):
280
  gr.Markdown("""
281
  ### ℹ️ Notice
282
 
@@ -284,10 +280,7 @@ with demo:
284
  No se guardan las grabaciones y se eliminan automáticamente.
285
  The recordings are not saved and are automatically removed.
286
  """)
287
- ok_button = gr.Button("OK")
288
-
289
- ok_button.click(fn=hide_popup, outputs=popup)
290
- demo.load(fn=show_popup, outputs=popup)
291
 
292
  gr.HTML("""
293
  <div id="orai-info">
 
166
 
167
 
168
  #popup-overlay {
169
+ display: none;
170
  position: fixed;
171
  top: 0;
172
  left: 0;
173
  width: 100vw;
174
  height: 100vh;
 
175
  justify-content: center;
176
  align-items: center;
177
  background: rgba(0,0,0,0.5);
178
  z-index: 999;
179
  flex-direction: column;
180
  }
181
+ #popup-box {
 
182
  background: white;
183
  padding: 20px;
184
  border-radius: 10px;
 
186
  width: 340px;
187
  text-align: center;
188
  }
 
189
  #popup-button {
190
  background-color: #5b65a7;
191
  color: white;
 
195
  border: none;
196
  cursor: pointer;
197
  }
 
198
  #popup-button:hover {
199
  background-color: #3c4687;
200
  }
 
272
 
273
  popup = gr.Column(visible=False, elem_id="popup-overlay")
274
  with popup:
275
+ with gr.Column(elem_id="popup-box"):
 
276
  gr.Markdown("""
277
  ### ℹ️ Notice
278
 
 
280
  No se guardan las grabaciones y se eliminan automáticamente.
281
  The recordings are not saved and are automatically removed.
282
  """)
283
+ ok_button = gr.Button("OK", elem_id="popup-button")
 
 
 
284
 
285
  gr.HTML("""
286
  <div id="orai-info">