Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ async def transcribe(file: UploadFile = File(...)):
|
|
| 19 |
|
| 20 |
start = time()
|
| 21 |
segments = model.transcribe(audio_path)
|
| 22 |
-
text = " ".join(seg.text for seg in segments
|
| 23 |
os.remove(audio_path)
|
| 24 |
|
| 25 |
return {"text": text}
|
|
|
|
| 19 |
|
| 20 |
start = time()
|
| 21 |
segments = model.transcribe(audio_path)
|
| 22 |
+
text = " ".join(seg.text for seg in segments)
|
| 23 |
os.remove(audio_path)
|
| 24 |
|
| 25 |
return {"text": text}
|