Sulitha commited on
Commit
b18febb
·
1 Parent(s): e124ecc

Fix: restore demo.launch() for Spaces runtime

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -234,6 +234,5 @@ def build_ui() -> gr.Blocks:
234
 
235
  demo = build_ui()
236
 
237
- # On Hugging Face Spaces, the runtime serves the app; avoid calling launch().
238
- if __name__ == "__main__" and os.getenv("SPACE_ID") is None:
239
  demo.launch()
 
234
 
235
  demo = build_ui()
236
 
237
+ if __name__ == "__main__":
 
238
  demo.launch()