Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def transcribe(inputs_path, task, use_demucs, dataset_name, oauth_token: gr.OAut
|
|
80 |
dataset = Dataset.from_dict({"audio": audios, "transcript": transcripts}).cast_column("audio", Audio())
|
81 |
|
82 |
|
83 |
-
dataset.push_to_hub(dataset_name, token=oauth_token)
|
84 |
|
85 |
return text
|
86 |
|
@@ -166,7 +166,7 @@ def yt_transcribe(yt_url, task, use_demucs, dataset_name, oauth_token: gr.OAuthT
|
|
166 |
dataset = Dataset.from_dict({"audio": audios, "transcript": transcripts}).cast_column("audio", Audio())
|
167 |
|
168 |
|
169 |
-
dataset.push_to_hub(dataset_name, token=oauth_token)
|
170 |
|
171 |
|
172 |
return html_embed_str, text
|
|
|
80 |
dataset = Dataset.from_dict({"audio": audios, "transcript": transcripts}).cast_column("audio", Audio())
|
81 |
|
82 |
|
83 |
+
dataset.push_to_hub(dataset_name, token=oauth_token.token)
|
84 |
|
85 |
return text
|
86 |
|
|
|
166 |
dataset = Dataset.from_dict({"audio": audios, "transcript": transcripts}).cast_column("audio", Audio())
|
167 |
|
168 |
|
169 |
+
dataset.push_to_hub(dataset_name, token=oauth_token.token)
|
170 |
|
171 |
|
172 |
return html_embed_str, text
|