Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 602 Bytes
aba2576 a12bd12 aba2576 ee43d12 aba2576 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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.registry,
accept_token=not os.getenv("OPENAI_API_KEY"),
twilio_sid=os.getenv("TWILIO_SID_OPENAI"),
twilio_token=os.getenv("TWILIO_AUTH_OPENAI"),
)
if __name__ == "__main__":
demo.launch()
|