Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -8,7 +8,7 @@ whisper = pipeline("automatic-speech-recognition", model="openai/whisper-base")
|
|
| 8 |
# μμ±μ ν
μ€νΈλ‘ λ³ννλ ν¨μ
|
| 9 |
def transcribe_audio(audio):
|
| 10 |
if audio is None:
|
| 11 |
-
return "
|
| 12 |
|
| 13 |
result = whisper(audio)
|
| 14 |
return result["text"], base64.b64encode(result["text"].encode()).decode() #type: ignore
|
|
|
|
| 8 |
# μμ±μ ν
μ€νΈλ‘ λ³ννλ ν¨μ
|
| 9 |
def transcribe_audio(audio):
|
| 10 |
if audio is None:
|
| 11 |
+
return "μλ¬: μ€λμ€ μμ", ""
|
| 12 |
|
| 13 |
result = whisper(audio)
|
| 14 |
return result["text"], base64.b64encode(result["text"].encode()).decode() #type: ignore
|