anychat / app_openai_voice.py
akhaliq's picture
akhaliq HF staff
add openai voice
aba2576
raw
history blame
496 Bytes
import os
import openai_gradio
from utils import get_app
demo = get_app(
models=[
"gpt-4o-realtime-preview",
"gpt-4o-realtime-preview-2024-12-17",
"gpt-4o-realtime-preview-2024-10-01",
"gpt-4o-mini-realtime-preview",
"gpt-4o-mini-realtime-preview-2024-12-17",
],
default_model="gpt-4o-mini-realtime-preview-2024-12-17",
src=openai_gradio,
accept_token=not os.getenv("OPENAI_API_KEY"),
)
if __name__ == "__main__":
demo.launch()