Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import torch
|
4 |
-
from datasets import load_dataset
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Processor, pipeline
|
7 |
|
8 |
|
9 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import torch
|
4 |
+
from datasets import load_dataset, Audio
|
5 |
+
from transformers import SpeechT5ForTextToSpeech, SpeechT5HifiGan, SpeechT5Processor, pipeline, WhisperFeatureExtractor, WhisperTokenizer, WhisperProcessor, AutomaticSpeechRecognitionPipeline, WhisperForConditionalGeneration
|
6 |
+
import librosa
|
7 |
+
from dataclasses import dataclass
|
8 |
+
|
9 |
+
|
10 |
|
|
|
11 |
|
12 |
|
13 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|