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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -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, 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,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, 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,9 +133,10 @@ 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, 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
 
140
  with gr.Row(visible=False) as footer:
141
  gr.HTML("<footer style='text-align: center;'>Thank you! Welcome again!</footer>")
 
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
  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
  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
+ with gr.Column():
138
+ preference = gr.Radio(choices=["All", "Veg", "Non-Veg"], label="Filter Preference", value="All")
139
+ menu_output = gr.HTML()
140
 
141
  with gr.Row(visible=False) as footer:
142
  gr.HTML("<footer style='text-align: center;'>Thank you! Welcome again!</footer>")