Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -9,10 +9,6 @@ import sys
9
  from subprocess import call
10
  import psutil
11
 
12
-
13
-
14
-
15
- torch.hub.download_url_to_file('http://people.csail.mit.edu/billf/project%20pages/sresCode/Markov%20Random%20Fields%20for%20Super-Resolution_files/100075_lowres.jpg', 'bear.jpg')
16
 
17
 
18
  def run_cmd(command):
@@ -22,6 +18,8 @@ def run_cmd(command):
22
  except KeyboardInterrupt:
23
  print("Process interrupted")
24
  sys.exit(1)
 
 
25
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P .")
26
  run_cmd("pip install basicsr")
27
  run_cmd("pip freeze")
 
9
  from subprocess import call
10
  import psutil
11
 
 
 
 
 
12
 
13
 
14
  def run_cmd(command):
 
18
  except KeyboardInterrupt:
19
  print("Process interrupted")
20
  sys.exit(1)
21
+
22
+ run_cmd("wget http://people.csail.mit.edu/billf/project%20pages/sresCode/Markov%20Random%20Fields%20for%20Super-Resolution_files/100075_lowres.jpg -O bear.jpg")
23
  run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P .")
24
  run_cmd("pip install basicsr")
25
  run_cmd("pip freeze")