Ashoka74 commited on
Commit
a8e3a7d
ยท
verified ยท
1 Parent(s): 10d4b8f

Update merged_app2.py

Browse files
Files changed (1) hide show
  1. merged_app2.py +5 -2
merged_app2.py CHANGED
@@ -1411,7 +1411,7 @@ import_custom_nodes()
1411
 
1412
  #Global variables for preloaded models and constants
1413
  with torch.inference_mode():
1414
- Initialize constants
1415
  intconstant = NODE_CLASS_MAPPINGS["INTConstant"]()
1416
  CONST_1024 = intconstant.get_value(value=1024)
1417
 
@@ -1975,4 +1975,7 @@ with gr.Blocks() as app:
1975
  ).then(clear_memory, inputs=[], outputs=[])
1976
 
1977
  if __name__ == "__main__":
1978
- app.launch(share=True)
 
 
 
 
1411
 
1412
  #Global variables for preloaded models and constants
1413
  with torch.inference_mode():
1414
+ #Initialize constants
1415
  intconstant = NODE_CLASS_MAPPINGS["INTConstant"]()
1416
  CONST_1024 = intconstant.get_value(value=1024)
1417
 
 
1975
  ).then(clear_memory, inputs=[], outputs=[])
1976
 
1977
  if __name__ == "__main__":
1978
+ app.queue(
1979
+ concurrency_count=3,
1980
+ max_size=5)
1981
+ app.launch(share=True, enable_queue=True)