Spaces:
Running
Running
jhj0517
commited on
Commit
·
8a8890b
1
Parent(s):
f7097a4
refactoring args
Browse files
app.py
CHANGED
@@ -304,25 +304,18 @@ class App:
|
|
304 |
outputs=None)
|
305 |
|
306 |
# Launch the app with optional gradio settings
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
launch_args['inbrowser'] = self.args.inbrowser
|
320 |
-
|
321 |
-
que_args = {}
|
322 |
-
if self.args.api_open:
|
323 |
-
que_args['api_open'] = self.args.api_open
|
324 |
-
|
325 |
-
self.app.queue(**que_args).launch(**launch_args)
|
326 |
|
327 |
@staticmethod
|
328 |
def open_folder(folder_path: str):
|
|
|
304 |
outputs=None)
|
305 |
|
306 |
# Launch the app with optional gradio settings
|
307 |
+
args = self.args
|
308 |
+
|
309 |
+
self.app.queue(
|
310 |
+
api_open=args.api_open
|
311 |
+
).launch(
|
312 |
+
share=args.share,
|
313 |
+
server_name=args.server_name,
|
314 |
+
server_port=args.server_port,
|
315 |
+
auth=(args.username, args.password) if args.username and args.password else None,
|
316 |
+
root_path=args.root_path,
|
317 |
+
inbrowser=args.inbrowser
|
318 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
|
320 |
@staticmethod
|
321 |
def open_folder(folder_path: str):
|