Kadi-IAM commited on
Commit
f9e1c6d
·
verified ·
1 Parent(s): b3dbc54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,7 +228,7 @@ def _init_user_token(request: gr.Request):
228
  return user_token
229
 
230
 
231
- with gr.Blocks(theme=gr.themes.Ocean()) as login_demo:
232
  gr.Markdown(
233
  """<br/><br/><br/><br/><br/><br/><br/><br/>
234
  <center>
@@ -448,7 +448,7 @@ app.add_middleware(SessionMiddleware, secret_key=SECRET_KEY)
448
  app = gr.mount_gradio_app(app, login_demo, path="/main")
449
 
450
  # Gradio interface
451
- with gr.Blocks(theme=gr.themes.Ocean()) as main_demo:
452
 
453
  # State for storing user token
454
  _state_user_token = gr.State([])
 
228
  return user_token
229
 
230
 
231
+ with gr.Blocks() as login_demo:
232
  gr.Markdown(
233
  """<br/><br/><br/><br/><br/><br/><br/><br/>
234
  <center>
 
448
  app = gr.mount_gradio_app(app, login_demo, path="/main")
449
 
450
  # Gradio interface
451
+ with gr.Blocks() as main_demo:
452
 
453
  # State for storing user token
454
  _state_user_token = gr.State([])