nagasurendra commited on
Commit
f6ba815
·
verified ·
1 Parent(s): e7a806e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -89,8 +89,8 @@ def filter_menu(preference):
89
 
90
  html_content = '<div style="padding: 0 10px; max-width: 1200px; margin: auto;">'
91
  for section, items in filtered_data.items():
92
- html_content += f"<h2 style='text-align: center; margin-top: 10px;'>{section}</h2>"
93
- html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; justify-content: center;">'
94
  for item in items:
95
  html_content += f"""
96
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; height: 350px;">
@@ -115,7 +115,7 @@ with gr.Blocks() as app:
115
  with gr.Row():
116
  gr.HTML("<h1 style='text-align: center;'>Welcome to Biryani Hub</h1>")
117
 
118
- with gr.Row(visible=True) as login_page:
119
  with gr.Column():
120
  login_email = gr.Textbox(label="Email")
121
  login_password = gr.Textbox(label="Password", type="password")
@@ -123,7 +123,7 @@ with gr.Blocks() as app:
123
  signup_button = gr.Button("Go to Signup")
124
  login_output = gr.Textbox(label="Status")
125
 
126
- with gr.Row(visible=False) as signup_page:
127
  with gr.Column():
128
  signup_name = gr.Textbox(label="Name")
129
  signup_email = gr.Textbox(label="Email")
@@ -133,7 +133,7 @@ with gr.Blocks() as app:
133
  login_redirect = gr.Button("Go to Login")
134
  signup_output = gr.Textbox(label="Status")
135
 
136
- with gr.Row(visible=False) as menu_page:
137
  preference = gr.Radio(choices=["All", "Veg", "Non-Veg"], label="Filter Preference", value="All")
138
  menu_output = gr.HTML()
139
 
 
89
 
90
  html_content = '<div style="padding: 0 10px; max-width: 1200px; margin: auto;">'
91
  for section, items in filtered_data.items():
92
+ html_content += f"<h2 style='text-align: center; margin-top: 5px;'>{section}</h2>"
93
+ html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; justify-content: center; margin-top: 10px;">'
94
  for item in items:
95
  html_content += f"""
96
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; height: 350px;">
 
115
  with gr.Row():
116
  gr.HTML("<h1 style='text-align: center;'>Welcome to Biryani Hub</h1>")
117
 
118
+ with gr.Row(visible=True, style="margin-bottom: 0px;") as login_page:
119
  with gr.Column():
120
  login_email = gr.Textbox(label="Email")
121
  login_password = gr.Textbox(label="Password", type="password")
 
123
  signup_button = gr.Button("Go to Signup")
124
  login_output = gr.Textbox(label="Status")
125
 
126
+ with gr.Row(visible=False, style="margin-bottom: 0px;") as signup_page:
127
  with gr.Column():
128
  signup_name = gr.Textbox(label="Name")
129
  signup_email = gr.Textbox(label="Email")
 
133
  login_redirect = gr.Button("Go to Login")
134
  signup_output = gr.Textbox(label="Status")
135
 
136
+ with gr.Row(visible=False, style="margin-top: -10px;") as menu_page:
137
  preference = gr.Radio(choices=["All", "Veg", "Non-Veg"], label="Filter Preference", value="All")
138
  menu_output = gr.HTML()
139