MichaelRKessler commited on
Commit
f9418af
·
1 Parent(s): a6a6f9b

Fix Hugging Face Spaces startup

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -293,10 +293,8 @@ def build_demo() -> gr.Blocks:
293
  return demo
294
 
295
 
296
- def main() -> None:
297
- demo = build_demo()
298
- demo.launch()
299
 
300
 
301
  if __name__ == "__main__":
302
- main()
 
293
  return demo
294
 
295
 
296
+ demo = build_demo()
 
 
297
 
298
 
299
  if __name__ == "__main__":
300
+ demo.launch(ssr_mode=False)