Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,20 @@ button.selected::after{
|
|
205 |
"""
|
206 |
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
|
|
|
209 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
210 |
with demo:
|
211 |
'''
|
@@ -316,3 +329,4 @@ with demo:
|
|
316 |
demo.queue(max_size=1)
|
317 |
#demo.launch(share=False, max_threads=3, auth=(os.getenv("username"), os.getenv("password")), auth_message="Please provide a username and a password.")
|
318 |
demo.launch(share=False, max_threads=3)
|
|
|
|
205 |
"""
|
206 |
|
207 |
|
208 |
+
with gr.Blocks(css=css) as demo:
|
209 |
+
btn_show = gr.Button("Show Popup")
|
210 |
+
popup = gr.Column(visible=False, elem_classes="popup-overlay")
|
211 |
+
with popup:
|
212 |
+
with gr.Column(elem_classes="popup-box"):
|
213 |
+
gr.Markdown("### This is a popup!")
|
214 |
+
btn_close = gr.Button("Close")
|
215 |
+
btn_show.click(fn=show_popup, outputs=popup)
|
216 |
+
btn_close.click(fn=hide_popup, outputs=popup)
|
217 |
+
|
218 |
+
demo.launch()
|
219 |
+
|
220 |
|
221 |
+
'''
|
222 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
223 |
with demo:
|
224 |
'''
|
|
|
329 |
demo.queue(max_size=1)
|
330 |
#demo.launch(share=False, max_threads=3, auth=(os.getenv("username"), os.getenv("password")), auth_message="Please provide a username and a password.")
|
331 |
demo.launch(share=False, max_threads=3)
|
332 |
+
'''
|