PCTseng commited on
Commit
ecaa5ca
·
verified ·
1 Parent(s): 1eea690

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -15,5 +15,8 @@ function refresh() {
15
 
16
  # For ithentication issue, always share https://pctseng-demo.hf.space
17
 
18
- demo = gr.load("PCTseng/EFP_Demo", src="spaces", hf_token = os.getenv('demo_gradioapp'), js=js_dark_theme).render()
 
 
 
19
  demo.queue().launch(auth=('demo',os.getenv('password')), share=True, ssr_mode=False)
 
15
 
16
  # For ithentication issue, always share https://pctseng-demo.hf.space
17
 
18
+ #demo = gr.load("PCTseng/EFP_Demo", src="spaces", hf_token = os.getenv('demo_gradioapp'), js=js_dark_theme).render()
19
+ with gr.Blocks(js=js_dark_theme) as app:
20
+ gr.load("PCTseng/EFP_Demo", src="spaces", hf_token = os.getenv('demo_gradioapp')).render()
21
+
22
  demo.queue().launch(auth=('demo',os.getenv('password')), share=True, ssr_mode=False)