hwonder Claude Opus 4.5 commited on
Commit
e709f15
·
1 Parent(s): f974318

Fix app startup for HF Spaces

Browse files

Call demo.launch() unconditionally instead of only when __main__.
HF Spaces imports the module rather than running it directly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -22,6 +22,4 @@ def create_demo():
22
  return demo
23
 
24
  demo = create_demo()
25
-
26
- if __name__ == "__main__":
27
- demo.launch()
 
22
  return demo
23
 
24
  demo = create_demo()
25
+ demo.launch()