Ahsen Khaliq commited on
Commit
e1ce954
1 Parent(s): 7d5f3ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -7,8 +7,6 @@ from random import randint
7
  import sys
8
  from subprocess import call
9
 
10
- torch.hub.download_url_to_file('https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth', './experiments/pretrained_models/RealESRGAN_x4plus.pth')
11
-
12
  def run_cmd(command):
13
  try:
14
  print(command)
@@ -16,7 +14,7 @@ def run_cmd(command):
16
  except KeyboardInterrupt:
17
  print("Process interrupted")
18
  sys.exit(1)
19
-
20
  run_cmd("python setup.py develop")
21
 
22
 
 
7
  import sys
8
  from subprocess import call
9
 
 
 
10
  def run_cmd(command):
11
  try:
12
  print(command)
 
14
  except KeyboardInterrupt:
15
  print("Process interrupted")
16
  sys.exit(1)
17
+ run_cmd("wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P experiments/pretrained_models")
18
  run_cmd("python setup.py develop")
19
 
20