Spaces:
Build error
Build error
Commit History
19 days ago
-
Add an OpenAI-compatible transcription endpoint
app.py now also serves POST /v1/audio/transcriptions, so clients written for OpenAI or other Whisper servers can transcribe with this app. Gradio 3.38 is kept: launch() returns its FastAPI app, and the route is added to it before blocking. Every option of the Full tab can be sent as an extra form field named as in config.json5, which is how the OpenAI SDKs send extra_body. Options default to the config, except that audio is transcribed as sent (no VAD) and diarization is off. Requests run one at a time outside the UI's queue, delete their upload afterwards, and use their own diarization process, so a UI job can't stop it. The endpoint can require "Authorization: Bearer <key>", set with WHISPER_WEBUI_API_KEY, --api_key or api_key in config.json5, and can be disabled with --openai_api False.06a9401