Spaces:
Runtime error
Runtime error
Update merged_app2.py
Browse files- 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.
|
|
|
|
|
|
|
|
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)
|