Spaces:
Running
on
Zero
Running
on
Zero
ZeroGPU ready
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import huggingface_hub
|
| 3 |
import os
|
|
@@ -99,6 +100,7 @@ def merge_audio_to_video(input_vid, input_aud):
|
|
| 99 |
|
| 100 |
return "output_video.mp4"
|
| 101 |
|
|
|
|
| 102 |
def infer(video_in):
|
| 103 |
|
| 104 |
# check if 'outputs' dir exists and empty it if necessary
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import gradio as gr
|
| 3 |
import huggingface_hub
|
| 4 |
import os
|
|
|
|
| 100 |
|
| 101 |
return "output_video.mp4"
|
| 102 |
|
| 103 |
+
@spaces.GPU(duration=100)
|
| 104 |
def infer(video_in):
|
| 105 |
|
| 106 |
# check if 'outputs' dir exists and empty it if necessary
|