svjack commited on
Commit
22a7171
·
1 Parent(s): 76d8ac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -5,6 +5,8 @@ os.system("pip install -U huggingface_hub")
5
  os.system("pip install -U diffusers")
6
  '''
7
 
 
 
8
  import sys
9
 
10
  import gradio as gr
@@ -16,8 +18,13 @@ from diffusers import AutoPipelineForText2Image
16
  from diffusers.pipelines.wuerstchen.pipeline_wuerstchen_prior import DEFAULT_STAGE_C_TIMESTEPS
17
 
18
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
 
 
 
 
19
  pipe = AutoPipelineForText2Image.from_pretrained("warp-ai/wuerstchen",
20
  torch_dtype=torch.float32)
 
21
  pipe.to(device)
22
 
23
  pipe.safety_checker = None
 
5
  os.system("pip install -U diffusers")
6
  '''
7
 
8
+ os.system("git clone https://huggingface.co/warp-ai/wuerstchen")
9
+
10
  import sys
11
 
12
  import gradio as gr
 
18
  from diffusers.pipelines.wuerstchen.pipeline_wuerstchen_prior import DEFAULT_STAGE_C_TIMESTEPS
19
 
20
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
21
+
22
+ pipe = AutoPipelineForText2Image.from_pretrained("wuerstchen",
23
+ torch_dtype=torch.float32)
24
+ '''
25
  pipe = AutoPipelineForText2Image.from_pretrained("warp-ai/wuerstchen",
26
  torch_dtype=torch.float32)
27
+ '''
28
  pipe.to(device)
29
 
30
  pipe.safety_checker = None