John6666 commited on
Commit
a86085a
·
verified ·
1 Parent(s): 19cdd87

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +4 -1
  3. requirements.txt +13 -9
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚡
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
- sdk_version: 4.38.1
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
 
4
  colorFrom: red
5
  colorTo: yellow
6
  sdk: gradio
7
+ sdk_version: 5.25.2
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import spaces
 
 
 
2
  import os
3
  import torch
4
  import random
@@ -386,4 +389,4 @@ with gr.Blocks(theme='bethecloud/storj_theme') as demo:
386
  outputs=[output_gallery, seed_used, full_positive_prompt_used, full_negative_prompt_used]
387
  )
388
 
389
- demo.launch(debug=True)
 
1
  import spaces
2
+ import subprocess
3
+ subprocess.run("pip install git+https://github.com/doevent/Real-ESRGAN.git --no-deps", shell=True)
4
+
5
  import os
6
  import torch
7
  import random
 
389
  outputs=[output_gallery, seed_used, full_positive_prompt_used, full_negative_prompt_used]
390
  )
391
 
392
+ demo.launch(debug=True, ssr_mode=False)
requirements.txt CHANGED
@@ -1,15 +1,19 @@
1
- git+https://github.com/doevent/Real-ESRGAN.git
2
- accelerate==0.27.2
3
- gradio
4
- invisible-watermark==0.2.0
5
- Pillow==10.2.0
6
- spaces
7
- omegaconf==2.3.0
8
  torchsde
9
  timm
10
  numpy==1.26.1
11
  tokenizers
12
  sentencepiece
13
- transformers
14
  einops
15
- diffusers
 
 
 
 
 
1
+ #git+https://github.com/doevent/Real-ESRGAN.git
2
+ accelerate>=0.27.2
3
+ #gradio
4
+ invisible-watermark>=0.2.0
5
+ Pillow>=10.2.0
6
+ #spaces
7
+ omegaconf>=2.3.0
8
  torchsde
9
  timm
10
  numpy==1.26.1
11
  tokenizers
12
  sentencepiece
13
+ transformers<=4.46.3
14
  einops
15
+ diffusers<=0.30.3
16
+ pydantic==2.10.6
17
+ torch==2.4.0
18
+ torchvision
19
+ opencv-python