smzerbe commited on
Commit
3e15aef
·
verified ·
1 Parent(s): fbaf04a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +51 -48
app.py CHANGED
@@ -1,48 +1,51 @@
1
- from modules import launch_utils
2
-
3
- args = launch_utils.args
4
- python = launch_utils.python
5
- git = launch_utils.git
6
- index_url = launch_utils.index_url
7
- dir_repos = launch_utils.dir_repos
8
-
9
- commit_hash = launch_utils.commit_hash
10
- git_tag = launch_utils.git_tag
11
-
12
- run = launch_utils.run
13
- is_installed = launch_utils.is_installed
14
- repo_dir = launch_utils.repo_dir
15
-
16
- run_pip = launch_utils.run_pip
17
- check_run_python = launch_utils.check_run_python
18
- git_clone = launch_utils.git_clone
19
- git_pull_recursive = launch_utils.git_pull_recursive
20
- list_extensions = launch_utils.list_extensions
21
- run_extension_installer = launch_utils.run_extension_installer
22
- prepare_environment = launch_utils.prepare_environment
23
- configure_for_tests = launch_utils.configure_for_tests
24
- start = launch_utils.start
25
-
26
-
27
- def main():
28
- if args.dump_sysinfo:
29
- filename = launch_utils.dump_sysinfo()
30
-
31
- print(f"Sysinfo saved as {filename}. Exiting...")
32
-
33
- exit(0)
34
-
35
- launch_utils.startup_timer.record("initial startup")
36
-
37
- with launch_utils.startup_timer.subcategory("prepare environment"):
38
- if not args.skip_prepare_environment:
39
- prepare_environment()
40
-
41
- if args.test_server:
42
- configure_for_tests()
43
-
44
- start()
45
-
46
-
47
- if __name__ == "__main__":
48
- main()
 
 
 
 
1
+ import os
2
+ os.environ["COMMANDLINE_ARGS"] = "--skip-torch-cuda-test"
3
+
4
+ from modules import launch_utils
5
+
6
+ args = launch_utils.args
7
+ python = launch_utils.python
8
+ git = launch_utils.git
9
+ index_url = launch_utils.index_url
10
+ dir_repos = launch_utils.dir_repos
11
+
12
+ commit_hash = launch_utils.commit_hash
13
+ git_tag = launch_utils.git_tag
14
+
15
+ run = launch_utils.run
16
+ is_installed = launch_utils.is_installed
17
+ repo_dir = launch_utils.repo_dir
18
+
19
+ run_pip = launch_utils.run_pip
20
+ check_run_python = launch_utils.check_run_python
21
+ git_clone = launch_utils.git_clone
22
+ git_pull_recursive = launch_utils.git_pull_recursive
23
+ list_extensions = launch_utils.list_extensions
24
+ run_extension_installer = launch_utils.run_extension_installer
25
+ prepare_environment = launch_utils.prepare_environment
26
+ configure_for_tests = launch_utils.configure_for_tests
27
+ start = launch_utils.start
28
+
29
+
30
+ def main():
31
+ if args.dump_sysinfo:
32
+ filename = launch_utils.dump_sysinfo()
33
+
34
+ print(f"Sysinfo saved as {filename}. Exiting...")
35
+
36
+ exit(0)
37
+
38
+ launch_utils.startup_timer.record("initial startup")
39
+
40
+ with launch_utils.startup_timer.subcategory("prepare environment"):
41
+ if not args.skip_prepare_environment:
42
+ prepare_environment()
43
+
44
+ if args.test_server:
45
+ configure_for_tests()
46
+
47
+ start()
48
+
49
+
50
+ if __name__ == "__main__":
51
+ main()