Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates. All rights reserved.
|
| 2 |
|
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -147,5 +163,8 @@ if __name__ == "__main__":
|
|
| 147 |
args = args_tuple[0]
|
| 148 |
|
| 149 |
demo = create_demo(args.name, args.device, args.offload)
|
|
|
|
|
|
|
| 150 |
#demo.launch(server_port=args.port, ssr_mode=False)
|
|
|
|
| 151 |
demo.launch(server_port=args.port, share = True)
|
|
|
|
| 1 |
+
'''
|
| 2 |
+
sudo apt-get update && sudo apt-get install git-lfs cbm ffmpeg
|
| 3 |
+
|
| 4 |
+
git clone https://huggingface.co/spaces/svjack/UNO-FLUX && cd UNO-FLUX
|
| 5 |
+
|
| 6 |
+
pip install -r requirements.txt
|
| 7 |
+
|
| 8 |
+
pip uninstall torch torchvision
|
| 9 |
+
pip install optimum optimum-quanto torch torchvision
|
| 10 |
+
|
| 11 |
+
huggingface-cli login
|
| 12 |
+
|
| 13 |
+
python app.py
|
| 14 |
+
|
| 15 |
+
'''
|
| 16 |
+
|
| 17 |
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates. All rights reserved.
|
| 18 |
|
| 19 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
| 163 |
args = args_tuple[0]
|
| 164 |
|
| 165 |
demo = create_demo(args.name, args.device, args.offload)
|
| 166 |
+
|
| 167 |
+
#demo = create_demo("flux-dev-fp8", args.device, True)
|
| 168 |
#demo.launch(server_port=args.port, ssr_mode=False)
|
| 169 |
+
|
| 170 |
demo.launch(server_port=args.port, share = True)
|