Spaces:
Sleeping
Sleeping
测试代码
Browse files
api.py
CHANGED
|
@@ -232,6 +232,9 @@ async def process_audio(audio_data: bytes, language: str = "auto") -> str:
|
|
| 232 |
return result
|
| 233 |
|
| 234 |
except Exception as e:
|
|
|
|
|
|
|
|
|
|
| 235 |
raise HTTPException(status_code=500, detail=f"Audio processing failed: {str(e)}")
|
| 236 |
|
| 237 |
|
|
|
|
| 232 |
return result
|
| 233 |
|
| 234 |
except Exception as e:
|
| 235 |
+
import traceback
|
| 236 |
+
traceback.print_exc()
|
| 237 |
+
traceback.print_stack()
|
| 238 |
raise HTTPException(status_code=500, detail=f"Audio processing failed: {str(e)}")
|
| 239 |
|
| 240 |
|