waroca commited on
Commit
27a801c
·
verified ·
1 Parent(s): 03c3613

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -91,7 +91,7 @@ def main():
91
  }
92
  """
93
 
94
- with gr.Blocks(title="DataPass") as demo:
95
  # Hero Section
96
  gr.HTML("""
97
  <div class="hero-section">
@@ -523,9 +523,9 @@ def main():
523
  demo.load(fn=load_user_status, outputs=[user_status])
524
  demo.load(fn=load_subscriptions, outputs=[subscriptions_container])
525
 
526
- return demo, custom_css
527
 
528
 
529
  if __name__ == "__main__":
530
- demo, custom_css = main()
531
- demo.launch(theme=theme.get_theme(), css=custom_css)
 
91
  }
92
  """
93
 
94
+ with gr.Blocks(title="DataPass", theme=theme.get_theme(), css=custom_css) as demo:
95
  # Hero Section
96
  gr.HTML("""
97
  <div class="hero-section">
 
523
  demo.load(fn=load_user_status, outputs=[user_status])
524
  demo.load(fn=load_subscriptions, outputs=[subscriptions_container])
525
 
526
+ return demo
527
 
528
 
529
  if __name__ == "__main__":
530
+ demo = main()
531
+ demo.launch()