Spaces:
Runtime error
Runtime error
Fix: restore demo.launch() for Spaces runtime
Browse files
app.py
CHANGED
|
@@ -234,6 +234,5 @@ def build_ui() -> gr.Blocks:
|
|
| 234 |
|
| 235 |
demo = build_ui()
|
| 236 |
|
| 237 |
-
|
| 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()
|