Spaces:
Running
Running
Move implementation to src folder
Browse files- app.py +3 -3
- src/__init__.py +0 -0
- download.py β src/download.py +1 -2
- utils.py β src/utils.py +0 -0
- vad.py β src/vad.py +1 -1
app.py
CHANGED
@@ -12,10 +12,10 @@ import ffmpeg
|
|
12 |
|
13 |
# UI
|
14 |
import gradio as gr
|
15 |
-
from download import ExceededMaximumDuration, downloadUrl
|
16 |
|
17 |
-
from
|
18 |
-
from
|
|
|
19 |
|
20 |
# Limitations (set to -1 to disable)
|
21 |
DEFAULT_INPUT_AUDIO_MAX_DURATION = 600 # seconds
|
|
|
12 |
|
13 |
# UI
|
14 |
import gradio as gr
|
|
|
15 |
|
16 |
+
from src.download import ExceededMaximumDuration, downloadUrl
|
17 |
+
from src.utils import slugify, write_srt, write_vtt
|
18 |
+
from src.vad import VadPeriodicTranscription, VadSileroTranscription
|
19 |
|
20 |
# Limitations (set to -1 to disable)
|
21 |
DEFAULT_INPUT_AUDIO_MAX_DURATION = 600 # seconds
|
src/__init__.py
ADDED
File without changes
|
download.py β src/download.py
RENAMED
@@ -1,8 +1,7 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
from tempfile import mkdtemp
|
4 |
from tkinter import Y
|
5 |
from yt_dlp import YoutubeDL
|
|
|
6 |
import yt_dlp
|
7 |
from yt_dlp.postprocessor import PostProcessor
|
8 |
|
|
|
|
|
|
|
1 |
from tempfile import mkdtemp
|
2 |
from tkinter import Y
|
3 |
from yt_dlp import YoutubeDL
|
4 |
+
|
5 |
import yt_dlp
|
6 |
from yt_dlp.postprocessor import PostProcessor
|
7 |
|
utils.py β src/utils.py
RENAMED
File without changes
|
vad.py β src/vad.py
RENAMED
@@ -17,7 +17,7 @@ import torch
|
|
17 |
import ffmpeg
|
18 |
import numpy as np
|
19 |
|
20 |
-
from utils import format_timestamp
|
21 |
|
22 |
# Defaults for Silero
|
23 |
# TODO: Make these configurable?
|
|
|
17 |
import ffmpeg
|
18 |
import numpy as np
|
19 |
|
20 |
+
from src.utils import format_timestamp
|
21 |
|
22 |
# Defaults for Silero
|
23 |
# TODO: Make these configurable?
|