Ahsen Khaliq
commited on
Commit
·
f379292
1
Parent(s):
124dee4
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import gradio as gr
|
|
4 |
|
5 |
|
6 |
def greet(vid):
|
7 |
-
os.
|
|
|
8 |
return 'flash_mob_inference_kapao_s_coco.gif'
|
9 |
|
10 |
title = "Kapao"
|
|
|
4 |
|
5 |
|
6 |
def greet(vid):
|
7 |
+
os.rename(vid, 'temp.mp4')
|
8 |
+
os.system("python demos/general.py --weights kapao_s_coco.pt --start 0 --end 2 --gif --fps --vid temp.mp4")
|
9 |
return 'flash_mob_inference_kapao_s_coco.gif'
|
10 |
|
11 |
title = "Kapao"
|