Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,8 @@ from PIL import Image
|
|
| 12 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 13 |
whisper_model = whisper.load_model("base")
|
| 14 |
|
| 15 |
-
# Whisper transcription function
|
| 16 |
def transcribe_audio(file_path):
|
| 17 |
-
if file_path is None:
|
| 18 |
return "❌ No audio file provided."
|
| 19 |
|
| 20 |
try:
|
|
|
|
| 12 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 13 |
whisper_model = whisper.load_model("base")
|
| 14 |
|
|
|
|
| 15 |
def transcribe_audio(file_path):
|
| 16 |
+
if file_path is None:
|
| 17 |
return "❌ No audio file provided."
|
| 18 |
|
| 19 |
try:
|