Kapao / app.py
Ahsen Khaliq
Update app.py
c4ac95b
raw
history blame
428 Bytes
import os
os.system("git clone https://github.com/AK391/kapao")
os.system("sh data/scripts/download_models.sh")
import gradio as gr
def greet(vid):
os.system("python demos/flash_mob.py --weights kapao_s_coco.pt --start 0 --end 2 --gif --fps --vid "+vid)
return 'flash_mob_inference_kapao_s_coco.gif'
iface = gr.Interface(fn=greet,"video", outputs=gr.outputs.Image(type="file", label="output"))
iface.launch()