multichatbot / app_openai.py
akhaliq's picture
akhaliq HF staff
update defaults
57192ef
raw
history blame contribute delete
766 Bytes
import os
import openai_gradio
from utils import get_app
demo = get_app(
models=[
"gpt-4o-2024-11-20",
"gpt-4o",
"gpt-4o-2024-08-06",
"gpt-4o-2024-05-13",
"chatgpt-4o-latest",
"gpt-4o-mini",
"gpt-4o-mini-2024-07-18",
"o1-preview",
"o1-preview-2024-09-12",
"o1-mini",
"o1-mini-2024-09-12",
"gpt-4-turbo",
"gpt-4-turbo-2024-04-09",
"gpt-4-turbo-preview",
"gpt-4-0125-preview",
"gpt-4-1106-preview",
"gpt-4",
"gpt-4-0613",
"o1-2024-12-17",
],
default_model="gpt-4o-mini",
src=openai_gradio.registry,
accept_token=not os.getenv("OPENAI_API_KEY"),
)
if __name__ == "__main__":
demo.launch()