Rammohan0504 commited on
Commit
a7df63d
·
verified ·
1 Parent(s): 28dcb32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -98,7 +98,7 @@ with gr.Blocks() as demo:
98
 
99
  dish_display = gr.HTML(value=display_dishes("ALL"))
100
 
101
- gr.HTML(f"""
102
  <div id="popup" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; width: 400px;">
103
  <span onclick="closePopup()" style="position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 18px;">&times;</span>
104
  <h2 id="popup-title" style="margin-top: 20px; color: #444;"></h2>
@@ -137,6 +137,7 @@ with gr.Blocks() as demo:
137
  </script>
138
  """)
139
 
 
140
  # Button click events
141
  btn_all.click(lambda: gr.update(value=display_dishes("ALL")), outputs=dish_display)
142
  btn_vegan.click(lambda: gr.update(value=display_dishes("VEGAN")), outputs=dish_display)
 
98
 
99
  dish_display = gr.HTML(value=display_dishes("ALL"))
100
 
101
+ gr.HTML("""
102
  <div id="popup" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); z-index: 1000; text-align: center; width: 400px;">
103
  <span onclick="closePopup()" style="position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 18px;">&times;</span>
104
  <h2 id="popup-title" style="margin-top: 20px; color: #444;"></h2>
 
137
  </script>
138
  """)
139
 
140
+
141
  # Button click events
142
  btn_all.click(lambda: gr.update(value=display_dishes("ALL")), outputs=dish_display)
143
  btn_vegan.click(lambda: gr.update(value=display_dishes("VEGAN")), outputs=dish_display)