Spaces:
Running
on
Zero
Running
on
Zero
xiaozhongji
commited on
Commit
·
7498d59
1
Parent(s):
e8610cf
update
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import numpy as np
|
@@ -22,6 +23,7 @@ def get_md5(content):
|
|
22 |
md5 = md5hash.hexdigest()
|
23 |
return md5
|
24 |
|
|
|
25 |
def get_video_res(img_path, audio_path, res_video_path, dynamic_scale=1.0):
|
26 |
|
27 |
expand_ratio = 0.5
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import numpy as np
|
|
|
23 |
md5 = md5hash.hexdigest()
|
24 |
return md5
|
25 |
|
26 |
+
@spaces.GPU
|
27 |
def get_video_res(img_path, audio_path, res_video_path, dynamic_scale=1.0):
|
28 |
|
29 |
expand_ratio = 0.5
|