Upload 5 files
Browse files- README.md +1 -1
- convert_url_to_diffusers_flux_gr.py +1 -1
- requirements.txt +8 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🎨➡️🧨
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
|
|
4 |
colorFrom: indigo
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.42.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: mit
|
convert_url_to_diffusers_flux_gr.py
CHANGED
@@ -43,7 +43,7 @@ def list_sub(a, b):
|
|
43 |
|
44 |
def is_repo_name(s):
|
45 |
import re
|
46 |
-
return re.fullmatch(r'^[^/,\s]
|
47 |
|
48 |
def clear_cache():
|
49 |
torch.cuda.empty_cache()
|
|
|
43 |
|
44 |
def is_repo_name(s):
|
45 |
import re
|
46 |
+
return re.fullmatch(r'^[^/,\s\"\']+/[^/,\s\"\']+$', s)
|
47 |
|
48 |
def clear_cache():
|
49 |
torch.cuda.empty_cache()
|
requirements.txt
CHANGED
@@ -1,11 +1,19 @@
|
|
1 |
torch
|
|
|
|
|
2 |
safetensors
|
3 |
git+https://github.com/huggingface/huggingface_hub
|
|
|
|
|
|
|
|
|
|
|
4 |
optimum-quanto
|
5 |
sentencepiece
|
6 |
git+https://github.com/Lightning-AI/pytorch-lightning
|
7 |
aria2
|
8 |
gdown
|
9 |
gguf>=0.9.1
|
|
|
10 |
numpy
|
11 |
psutil
|
|
|
1 |
torch
|
2 |
+
torchaudio
|
3 |
+
torchvision
|
4 |
safetensors
|
5 |
git+https://github.com/huggingface/huggingface_hub
|
6 |
+
git+https://github.com/huggingface/transformers
|
7 |
+
git+https://github.com/huggingface/accelerate
|
8 |
+
git+https://github.com/huggingface/diffusers
|
9 |
+
git+https://github.com/huggingface/peft
|
10 |
+
xformers
|
11 |
optimum-quanto
|
12 |
sentencepiece
|
13 |
git+https://github.com/Lightning-AI/pytorch-lightning
|
14 |
aria2
|
15 |
gdown
|
16 |
gguf>=0.9.1
|
17 |
+
bitsandbytes
|
18 |
numpy
|
19 |
psutil
|