artificiallover0 commited on
Commit
5093d68
·
verified ·
1 Parent(s): 53a1d0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,9 +5,12 @@ import random
5
  # import spaces #[uncomment to use ZeroGPU]
6
  from diffusers import DiffusionPipeline
7
  import torch
 
 
 
8
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
- model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to use
11
 
12
  if torch.cuda.is_available():
13
  torch_dtype = torch.float16
 
5
  # import spaces #[uncomment to use ZeroGPU]
6
  from diffusers import DiffusionPipeline
7
  import torch
8
+ import os
9
+ a=os.getenv('hf_key2')
10
+ login(token=a )
11
 
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
+ model_repo_id = "black-forest-labs/FLUX.1-dev" # Replace to the model you would like to use
14
 
15
  if torch.cuda.is_available():
16
  torch_dtype = torch.float16