mrestrepo commited on
Commit
b1078f5
·
1 Parent(s): e60b1f2

cuda in device

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -4,14 +4,14 @@ import random
4
  # import spaces #[uncomment to use ZeroGPU]
5
  from diffusers import AutoPipelineForText2Image
6
  import torch
 
7
 
8
 
9
- from huggingface_hub import snapshot_download
10
- snapshot_download(repo_id="roomie/xavyy", cache_dir='./')
11
 
12
  pipeline = AutoPipelineForText2Image.from_pretrained(
13
  'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cpu')
14
- pipeline.load_lora_weights('roomie/xavyy', weight_name='xavyy.safetensors')
15
 
16
 
17
  MAX_SEED = np.iinfo(np.int32).max
 
4
  # import spaces #[uncomment to use ZeroGPU]
5
  from diffusers import AutoPipelineForText2Image
6
  import torch
7
+ from huggingface_hub import snapshot_download
8
 
9
 
10
+ snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
 
11
 
12
  pipeline = AutoPipelineForText2Image.from_pretrained(
13
  'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cpu')
14
+ pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
15
 
16
 
17
  MAX_SEED = np.iinfo(np.int32).max
requirements.txt CHANGED
@@ -4,4 +4,5 @@ invisible_watermark
4
  torch
5
  transformers
6
  xformers
7
- sentencepiece
 
 
4
  torch
5
  transformers
6
  xformers
7
+ sentencepiece
8
+ peft