Update app.py
Browse files19 unmodified lines2021222324252619 unmodified linesprint(f"Using device: {device}")# Load the Whisper model and processorwhisper_model_name = "openai/whisper-small.en"whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name).to(device)19 unmodified lines2021222324252619 unmodified linesprint(f"Using device: {device}")# Load the Whisper model and processorwhisper_model_name = "openai/whisper-small"whisper_processor = WhisperProcessor.from_pretrained(whisper_model_name)whisper_model = WhisperForConditionalGeneration.from_pretrained(whisper_model_name).to(device)
app.py+1-1