NickKolok commited on
Commit
d581670
·
verified ·
1 Parent(s): a050157

Don't install dependencies on the fly

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -1,6 +1,4 @@
1
  import os
2
- os.system("pip install gradio==2.9b23")
3
-
4
  import random
5
  import gradio as gr
6
  from PIL import Image
@@ -34,9 +32,6 @@ def run_cmd(command):
34
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P .")
35
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth -P .")
36
 
37
- run_cmd("pip install basicsr")
38
- run_cmd("pip freeze")
39
-
40
 
41
 
42
  def inference(img,mode):
 
1
  import os
 
 
2
  import random
3
  import gradio as gr
4
  from PIL import Image
 
32
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P .")
33
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth -P .")
34
 
 
 
 
35
 
36
 
37
  def inference(img,mode):