Spaces:
Configuration error
Configuration error
create whisper.py
Browse files- whisper.py +7 -0
whisper.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Light dummy whisper to make app start - no heavy torch needed
|
| 2 |
+
def load_model(name):
|
| 3 |
+
print(f"Dummy whisper model {name} loaded")
|
| 4 |
+
return None
|
| 5 |
+
|
| 6 |
+
def transcribe(*args, **kwargs):
|
| 7 |
+
return {"text": "audio transcription disabled in light mode"}
|