Ahsen Khaliq commited on
Commit
c709c3d
1 Parent(s): 93fa241

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -11,10 +11,9 @@ from pathlib import Path
11
 
12
 
13
  def inference(video):
14
- oldext = os.path.splitext(video)[1]
15
- os.rename(video, "test" + oldext)
16
- os.system("python3 deploy/ONNXRuntime/onnx_inference.py -i test"+oldext)
17
- return "demo_output/test"+oldext
18
 
19
 
20
  title = "Anime2Sketch"
 
11
 
12
 
13
  def inference(video):
14
+ os.system("python3 deploy/ONNXRuntime/onnx_inference.py -i "+video)
15
+ os.system("ls demo_output/")
16
+ return "demo_output/*.mp4"
 
17
 
18
 
19
  title = "Anime2Sketch"