Spaces:
Running
Running
Commit
·
62392ca
1
Parent(s):
2bf7def
init
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
# app.py
|
2 |
import gradio as gr
|
3 |
import subprocess
|
|
|
4 |
import os
|
5 |
import sys
|
6 |
import datetime
|
@@ -40,6 +41,7 @@ def generate_safe_filename_part(text, max_len=20):
|
|
40 |
safe_text = "_".join(safe_text.split()) # Replace spaces with underscores
|
41 |
return safe_text[:max_len]
|
42 |
|
|
|
43 |
def run_video_edit(source_video_path, source_prompt, target_prompt, source_words, target_words,
|
44 |
omega_value, n_max_value, n_avg_value, progress=gr.Progress(track_tqdm=True)):
|
45 |
if not source_video_path:
|
|
|
1 |
# app.py
|
2 |
import gradio as gr
|
3 |
import subprocess
|
4 |
+
import spaces
|
5 |
import os
|
6 |
import sys
|
7 |
import datetime
|
|
|
41 |
safe_text = "_".join(safe_text.split()) # Replace spaces with underscores
|
42 |
return safe_text[:max_len]
|
43 |
|
44 |
+
@space.GPU
|
45 |
def run_video_edit(source_video_path, source_prompt, target_prompt, source_words, target_words,
|
46 |
omega_value, n_max_value, n_avg_value, progress=gr.Progress(track_tqdm=True)):
|
47 |
if not source_video_path:
|