Ahsen Khaliq commited on
Commit
f555b99
1 Parent(s): c591eaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -7,10 +7,13 @@ os.system("pip3 install -r requirements.txt")
7
  os.system("pip3 install -v -e .")
8
  os.chdir("..")
9
  os.system("gdown https://drive.google.com/uc?id=1RE5vaKHYt_TL0cXNn6FmjO7aZx3sVfVA")
 
 
10
 
11
  def inference(video):
12
  os.system("python3 deploy/ONNXRuntime/onnx_inference.py -i "+video)
13
- return "demo_output/"+video
 
14
 
15
 
16
  title = "Anime2Sketch"
 
7
  os.system("pip3 install -v -e .")
8
  os.chdir("..")
9
  os.system("gdown https://drive.google.com/uc?id=1RE5vaKHYt_TL0cXNn6FmjO7aZx3sVfVA")
10
+ from pathlib import Path
11
+
12
 
13
  def inference(video):
14
  os.system("python3 deploy/ONNXRuntime/onnx_inference.py -i "+video)
15
+ vidname = Path(video).stem
16
+ return "demo_output/"+vidname+".mp4"
17
 
18
 
19
  title = "Anime2Sketch"