Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -312,7 +312,7 @@ def process_document(file):
|
|
| 312 |
#end
|
| 313 |
|
| 314 |
# Real-time Whisper setup - cache the model
|
| 315 |
-
|
| 316 |
def load_realtime_whisper():
|
| 317 |
"""Load optimized Whisper model for real-time transcription"""
|
| 318 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 312 |
#end
|
| 313 |
|
| 314 |
# Real-time Whisper setup - cache the model
|
| 315 |
+
#@gr.cache_resource
|
| 316 |
def load_realtime_whisper():
|
| 317 |
"""Load optimized Whisper model for real-time transcription"""
|
| 318 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|