jhj0517
commited on
Commit
·
5787b45
1
Parent(s):
08e36d8
Add default_concurrency_limit
Browse files
app.py
CHANGED
@@ -71,7 +71,9 @@ class App:
|
|
71 |
triggers=[param.change for param in params],
|
72 |
fn=self.inferencer.edit_expression,
|
73 |
inputs=params + opt_in_features_params,
|
74 |
-
outputs=img_out
|
|
|
|
|
75 |
)
|
76 |
|
77 |
btn_openfolder.click(
|
@@ -90,7 +92,9 @@ class App:
|
|
90 |
"root_path": self.args.root_path,
|
91 |
"auth": (self.args.username, self.args.password) if self.args.username and self.args.password else None,
|
92 |
}
|
93 |
-
self.app.queue(
|
|
|
|
|
94 |
|
95 |
@staticmethod
|
96 |
def open_folder(folder_path: str):
|
|
|
71 |
triggers=[param.change for param in params],
|
72 |
fn=self.inferencer.edit_expression,
|
73 |
inputs=params + opt_in_features_params,
|
74 |
+
outputs=img_out,
|
75 |
+
show_progress="minimal",
|
76 |
+
queue=True
|
77 |
)
|
78 |
|
79 |
btn_openfolder.click(
|
|
|
92 |
"root_path": self.args.root_path,
|
93 |
"auth": (self.args.username, self.args.password) if self.args.username and self.args.password else None,
|
94 |
}
|
95 |
+
self.app.queue(
|
96 |
+
default_concurrency_limit=1
|
97 |
+
).launch(**gradio_launch_args)
|
98 |
|
99 |
@staticmethod
|
100 |
def open_folder(folder_path: str):
|