John6666 commited on
Commit
6d81950
·
verified ·
1 Parent(s): 764d6fe

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +4 -4
app.py CHANGED
@@ -4,6 +4,9 @@ import os
4
  import requests
5
  import time
6
 
 
 
 
7
  import torch
8
 
9
  from diffusers import StableDiffusionControlNetImg2ImgPipeline, ControlNetModel, DDIMScheduler
 
4
  import requests
5
  import time
6
 
7
+ import subprocess
8
+ subprocess.run("pip install git+https://github.com/inference-sh/Real-ESRGAN.git --no-deps", shell=True)
9
+
10
  import torch
11
 
12
  from diffusers import StableDiffusionControlNetImg2ImgPipeline, ControlNetModel, DDIMScheduler
requirements.txt CHANGED
@@ -1,15 +1,15 @@
1
- git+https://github.com/inference-sh/Real-ESRGAN.git
2
  opencv-python
3
  spaces
4
  diffusers
5
- torch
6
  torchvision
7
  pipeline
8
- transformers
9
  accelerate
10
  safetensors
11
  spaces
12
  peft
13
  gradio
14
  pillow
15
- gradio-imageslider
 
 
 
1
  opencv-python
2
  spaces
3
  diffusers
4
+ torch==2.4.0
5
  torchvision
6
  pipeline
7
+ transformers<=4.49.0
8
  accelerate
9
  safetensors
10
  spaces
11
  peft
12
  gradio
13
  pillow
14
+ gradio-imageslider
15
+ pydantic==2.10.6