sgbaird commited on
Commit
1346cac
·
1 Parent(s): 3084fa9

Move app initialization outside of main guard for immediate execution

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -137,7 +137,6 @@ with gr.Blocks(title="Simplified Printer Control") as demo:
137
  outputs=status,
138
  )
139
 
140
- if __name__ == "__main__":
141
- print("App initializing...")
142
- threading.Thread(target=main_logic, daemon=True).start()
143
- demo.launch()
 
137
  outputs=status,
138
  )
139
 
140
+ print("App initializing...")
141
+ threading.Thread(target=main_logic, daemon=True).start()
142
+ demo.launch()