Commit
•
ff8f5cb
1
Parent(s):
7ba2a73
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,9 @@ import importlib
|
|
15 |
import sys
|
16 |
MAX_IMAGES = 50
|
17 |
|
|
|
|
|
|
|
18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
19 |
|
20 |
processor = Blip2Processor.from_pretrained("Salesforce/blip2-opt-2.7b")
|
|
|
15 |
import sys
|
16 |
MAX_IMAGES = 50
|
17 |
|
18 |
+
training_script_url = "https://raw.githubusercontent.com/huggingface/diffusers/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py"
|
19 |
+
subprocess.run(['wget', "training_script_url"])
|
20 |
+
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
22 |
|
23 |
processor = Blip2Processor.from_pretrained("Salesforce/blip2-opt-2.7b")
|