fffiloni commited on
Commit
eede3bc
1 Parent(s): 6790cce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -3,19 +3,19 @@ import os
3
  import sys
4
  import subprocess
5
 
6
- # Clone the specific branch
7
- subprocess.run(["git", "clone", "-b", "sd3_control", "https://github.com/instantX-research/diffusers_sd3_control.git"])
8
-
9
- # Change directory to the cloned repository and install it
10
- os.chdir('diffusers')
11
- subprocess.run(["pip", "install", "-e", "."])
12
-
13
  hf_token = os.environ.get("HF_TOKEN")
14
  import torch
15
  from diffusers import StableDiffusion3Pipeline
16
  from diffusers.models.controlnet_sd3 import ControlNetSD3Model
17
  from diffusers.utils.torch_utils import randn_tensor
18
 
 
 
 
 
 
 
 
19
  # Add the path to the examples directory
20
  sys.path.append(os.path.abspath('./examples/community'))
21
 
 
3
  import sys
4
  import subprocess
5
 
 
 
 
 
 
 
 
6
  hf_token = os.environ.get("HF_TOKEN")
7
  import torch
8
  from diffusers import StableDiffusion3Pipeline
9
  from diffusers.models.controlnet_sd3 import ControlNetSD3Model
10
  from diffusers.utils.torch_utils import randn_tensor
11
 
12
+ # Clone the specific branch
13
+ subprocess.run(["git", "clone", "-b", "sd3_control", "https://github.com/instantX-research/diffusers_sd3_control.git"])
14
+
15
+ # Change directory to the cloned repository and install it
16
+ os.chdir('diffusers_sd3_control')
17
+ subprocess.run(["pip", "install", "-e", "."])
18
+
19
  # Add the path to the examples directory
20
  sys.path.append(os.path.abspath('./examples/community'))
21