Update app.py
Browse files
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)
|