Spaces:
Running
on
Zero
Running
on
Zero
PommesPeter
commited on
Commit
•
9e7100f
1
Parent(s):
833952f
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import argparse
|
2 |
import builtins
|
3 |
import json
|
4 |
import multiprocessing as mp
|
5 |
-
import os, sys
|
6 |
import random
|
7 |
import socket
|
8 |
import traceback
|
@@ -592,8 +596,5 @@ def main():
|
|
592 |
|
593 |
|
594 |
if __name__ == "__main__":
|
595 |
-
os.system("mkdir -p ./checkpoints")
|
596 |
-
os.system("huggingface-cli download --resume-download Alpha-VLLM/Lumina-Next-T2I --local-dir ./checkpoints --local-dir-use-symlinks False")
|
597 |
-
os.system("pip install flash-attn --no-build-isolation")
|
598 |
mp.set_start_method("spawn")
|
599 |
main()
|
|
|
1 |
+
import os
|
2 |
+
os.system("mkdir -p ./checkpoints")
|
3 |
+
os.system("huggingface-cli download --resume-download Alpha-VLLM/Lumina-Next-T2I --local-dir ./checkpoints --local-dir-use-symlinks False")
|
4 |
+
os.system("pip install flash-attn --no-build-isolation")
|
5 |
+
|
6 |
import argparse
|
7 |
import builtins
|
8 |
import json
|
9 |
import multiprocessing as mp
|
|
|
10 |
import random
|
11 |
import socket
|
12 |
import traceback
|
|
|
596 |
|
597 |
|
598 |
if __name__ == "__main__":
|
|
|
|
|
|
|
599 |
mp.set_start_method("spawn")
|
600 |
main()
|