cmcmaster commited on
Commit
979ea50
·
verified ·
1 Parent(s): 08ad50e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -222,6 +222,7 @@ if UPDATE_INTERVAL > 0:
222
  # Shutdown scheduler when app terminates
223
  atexit.register(lambda: scheduler.shutdown())
224
 
225
-
226
- demo = create_interface()
227
- demo.launch()
 
 
222
  # Shutdown scheduler when app terminates
223
  atexit.register(lambda: scheduler.shutdown())
224
 
225
+ # Create and launch the interface
226
+ if __name__ == "__main__":
227
+ demo = create_interface()
228
+ demo.launch()