DrishtiSharma commited on
Commit
3818e91
·
verified ·
1 Parent(s): 0227e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -40,28 +40,6 @@ import re, operator
40
  chromadb.api.client.SharedSystemClient.clear_system_cache()
41
 
42
 
43
- import torch
44
- from diffusers import DiffusionPipeline
45
- import numpy as np
46
- import random
47
-
48
- from huggingface_hub import login
49
- import os
50
- import torch
51
- from diffusers import DiffusionPipeline
52
-
53
- # Authenticate first
54
- login(token=os.getenv("HUGGINGFACE_HUB_TOKEN"))
55
-
56
- torch_dtype = torch.bfloat16 if torch.cuda.is_available() else torch.float32
57
- device = "cuda" if torch.cuda.is_available() else "cpu"
58
-
59
- pipe = DiffusionPipeline.from_pretrained(
60
- "black-forest-labs/FLUX.1-schnell",
61
- torch_dtype=torch_dtype
62
- ).to(device)
63
-
64
-
65
  MAX_SEED = np.iinfo(np.int32).max
66
 
67
 
 
40
  chromadb.api.client.SharedSystemClient.clear_system_cache()
41
 
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  MAX_SEED = np.iinfo(np.int32).max
44
 
45