Jellyfish042 commited on
Commit
c800b92
·
1 Parent(s): da2a63c

Set css/js on Blocks for HF runtime

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1453,10 +1453,7 @@ JS_FUNC = """
1453
  JS_BOOT = f"(function(){{ const init = {JS_FUNC}; init(); return init; }})()"
1454
 
1455
 
1456
- if GRADIO_MAJOR >= 6:
1457
- demo_context = gr.Blocks()
1458
- else:
1459
- demo_context = gr.Blocks(css=CSS, js=JS_BOOT)
1460
 
1461
  with demo_context as demo:
1462
  gr.HTML(
 
1453
  JS_BOOT = f"(function(){{ const init = {JS_FUNC}; init(); return init; }})()"
1454
 
1455
 
1456
+ demo_context = gr.Blocks(css=CSS, js=JS_BOOT)
 
 
 
1457
 
1458
  with demo_context as demo:
1459
  gr.HTML(