Ahsen Khaliq commited on
Commit
7c43356
·
1 Parent(s): 3000b36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -8,13 +8,7 @@ os.system("gdown https://drive.google.com/uc?id=1nrz2Oc5ljvixplPra55m_NGtGAtSSEO
8
  os.system("gdown https://drive.google.com/uc?id=1WocJsMOsn6LP5NNZzhP9ErO7uz8gK8xI")
9
 
10
  def inference(image):
11
- os.system("""python scripts/test.py \
12
- --ckpt_encoder ./art_mobile_encoder_1024p.onnx \
13
- --ckpt_decoder ./art_decoder_1024p.onnx \
14
- --network e4e \
15
- --platform onnx \
16
- --size 1024 \
17
- --images_path """+image.name)
18
 
19
  return "out.png"
20
 
 
8
  os.system("gdown https://drive.google.com/uc?id=1WocJsMOsn6LP5NNZzhP9ErO7uz8gK8xI")
9
 
10
  def inference(image):
11
+ os.system("python scripts/test.py --ckpt_encoder ./art_mobile_encoder_1024p.onnx --ckpt_decoder ./art_decoder_1024p.onnx --network e4e --platform onnx --size 1024 --images_path "+image.name)
 
 
 
 
 
 
12
 
13
  return "out.png"
14