Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -32,7 +32,7 @@ translation_models = {
|
|
32 |
}
|
33 |
|
34 |
# Load models once
|
35 |
-
generator = pipeline("text-generation", model="distilgpt2"
|
36 |
whisper_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-base")
|
37 |
whisper_processor = WhisperProcessor.from_pretrained("openai/whisper-base")
|
38 |
|
|
|
32 |
}
|
33 |
|
34 |
# Load models once
|
35 |
+
generator = pipeline("text-generation", model="distilgpt2", framework="tf", from_tf=True)
|
36 |
whisper_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-base")
|
37 |
whisper_processor = WhisperProcessor.from_pretrained("openai/whisper-base")
|
38 |
|