Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,8 @@ model.to("cuda")
|
|
61 |
|
62 |
def prepare_media(source_path_or_url: os.PathLike,
|
63 |
source_type: Literal['audio_filepath', 'youtube_url'],
|
64 |
-
delete_video: bool = True
|
|
|
65 |
"""prepare media from source path or youtube, and return audio info"""
|
66 |
# Get audio_file
|
67 |
if source_type == 'audio_filepath':
|
@@ -182,7 +183,10 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
182 |
|
183 |
## Caution:
|
184 |
- For acadmic reproduction purpose, we strongly recommend to use [Colab Demo](https://colab.research.google.com/drive/1AgOVEBfZknDkjmSRA7leoa81a2vrnhBG?usp=sharing) with multiple checkpoints.
|
185 |
-
|
|
|
|
|
|
|
186 |
<div style="display: inline-block;">
|
187 |
<a href="https://arxiv.org/abs/2407.04822">
|
188 |
<img src="https://img.shields.io/badge/arXiv:2407.04822-B31B1B?logo=arxiv&logoColor=fff&style=plastic" alt="arXiv Badge"/>
|
|
|
61 |
|
62 |
def prepare_media(source_path_or_url: os.PathLike,
|
63 |
source_type: Literal['audio_filepath', 'youtube_url'],
|
64 |
+
delete_video: bool = True,
|
65 |
+
simulate = False) -> Dict:
|
66 |
"""prepare media from source path or youtube, and return audio info"""
|
67 |
# Get audio_file
|
68 |
if source_type == 'audio_filepath':
|
|
|
183 |
|
184 |
## Caution:
|
185 |
- For acadmic reproduction purpose, we strongly recommend to use [Colab Demo](https://colab.research.google.com/drive/1AgOVEBfZknDkjmSRA7leoa81a2vrnhBG?usp=sharing) with multiple checkpoints.
|
186 |
+
|
187 |
+
## YouTube transcription (**working**):
|
188 |
+
- Press the "Transcribe" button, copy the 6-digit code below, and paste it into "google.com/device". (Only needed once.)
|
189 |
+
|
190 |
<div style="display: inline-block;">
|
191 |
<a href="https://arxiv.org/abs/2407.04822">
|
192 |
<img src="https://img.shields.io/badge/arXiv:2407.04822-B31B1B?logo=arxiv&logoColor=fff&style=plastic" alt="arXiv Badge"/>
|