Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def transcribe_audio(file_path):
|
|
50 |
file=f,
|
51 |
response_format="verbose_json"
|
52 |
)
|
53 |
-
return result
|
54 |
except Exception as e:
|
55 |
raise RuntimeError(f"Transcription error: {e}")
|
56 |
|
|
|
50 |
file=f,
|
51 |
response_format="verbose_json"
|
52 |
)
|
53 |
+
return result.text, result.language
|
54 |
except Exception as e:
|
55 |
raise RuntimeError(f"Transcription error: {e}")
|
56 |
|