Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import soundfile as sf
|
|
| 3 |
import gradio as gr
|
| 4 |
import spaces
|
| 5 |
from clearvoice import ClearVoice
|
|
|
|
| 6 |
|
| 7 |
@spaces.GPU
|
| 8 |
def fn_clearvoice_se(input_wav, sr):
|
|
@@ -50,7 +51,7 @@ def find_mp4_files(directory):
|
|
| 50 |
|
| 51 |
return mp4_files
|
| 52 |
|
| 53 |
-
@spaces.GPU(duration=
|
| 54 |
def fn_clearvoice_tse(input_video):
|
| 55 |
myClearVoice = ClearVoice(task='target_speaker_extraction', model_names=['AV_MossFormer2_TSE_16K'])
|
| 56 |
#output_wav_dict =
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import spaces
|
| 5 |
from clearvoice import ClearVoice
|
| 6 |
+
import os
|
| 7 |
|
| 8 |
@spaces.GPU
|
| 9 |
def fn_clearvoice_se(input_wav, sr):
|
|
|
|
| 51 |
|
| 52 |
return mp4_files
|
| 53 |
|
| 54 |
+
@spaces.GPU(duration=500)
|
| 55 |
def fn_clearvoice_tse(input_video):
|
| 56 |
myClearVoice = ClearVoice(task='target_speaker_extraction', model_names=['AV_MossFormer2_TSE_16K'])
|
| 57 |
#output_wav_dict =
|