fix code
Browse files
serve.py
CHANGED
|
@@ -16,7 +16,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 16 |
|
| 17 |
# model = load_model(device)
|
| 18 |
|
| 19 |
-
processor = WhisperProcessor.from_pretrained("Ivydata/whisper-small-japanese")
|
| 20 |
model = WhisperForConditionalGeneration.from_pretrained("Ivydata/whisper-small-japanese").to(device)
|
| 21 |
|
| 22 |
def transcribe_audio(audio_data_bytes):
|
|
|
|
| 16 |
|
| 17 |
# model = load_model(device)
|
| 18 |
|
| 19 |
+
processor = WhisperProcessor.from_pretrained("Ivydata/whisper-small-japanese")
|
| 20 |
model = WhisperForConditionalGeneration.from_pretrained("Ivydata/whisper-small-japanese").to(device)
|
| 21 |
|
| 22 |
def transcribe_audio(audio_data_bytes):
|