Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -554,6 +554,7 @@ STANDARD_TEXT_MODELS = [
|
|
| 554 |
"gpt-4.1-mini",
|
| 555 |
"gpt-5.2",
|
| 556 |
"gpt-5.2-pro",
|
|
|
|
| 557 |
"gpt-5",
|
| 558 |
"gpt-5-mini",
|
| 559 |
"gpt-4o-2024-08-06",
|
|
@@ -666,7 +667,7 @@ def conditional_llm(
|
|
| 666 |
def generate_audio(
|
| 667 |
files: list,
|
| 668 |
openai_api_key: str = None,
|
| 669 |
-
text_model: str = "
|
| 670 |
reasoning_effort: str = "N/A",
|
| 671 |
do_web_search: bool = False,
|
| 672 |
audio_model: str = "tts-1",
|
|
@@ -1020,7 +1021,7 @@ with gr.Blocks(title="PDF to Audio", css="""
|
|
| 1020 |
text_model = gr.Dropdown(
|
| 1021 |
label="Text Generation Model",
|
| 1022 |
choices=STANDARD_TEXT_MODELS,
|
| 1023 |
-
value="gpt-5", #"o3-mini", #"o4-mini", #"o1-preview-2024-09-12", #"gpt-4o-mini",
|
| 1024 |
info="Select the model to generate the dialogue text.",
|
| 1025 |
)
|
| 1026 |
reasoning_effort = gr.Dropdown(
|
|
|
|
| 554 |
"gpt-4.1-mini",
|
| 555 |
"gpt-5.2",
|
| 556 |
"gpt-5.2-pro",
|
| 557 |
+
"gpt-5.5",
|
| 558 |
"gpt-5",
|
| 559 |
"gpt-5-mini",
|
| 560 |
"gpt-4o-2024-08-06",
|
|
|
|
| 667 |
def generate_audio(
|
| 668 |
files: list,
|
| 669 |
openai_api_key: str = None,
|
| 670 |
+
text_model: str = "gpt-5.5", #o1-2024-12-17", #"o1-preview-2024-09-12",
|
| 671 |
reasoning_effort: str = "N/A",
|
| 672 |
do_web_search: bool = False,
|
| 673 |
audio_model: str = "tts-1",
|
|
|
|
| 1021 |
text_model = gr.Dropdown(
|
| 1022 |
label="Text Generation Model",
|
| 1023 |
choices=STANDARD_TEXT_MODELS,
|
| 1024 |
+
value="gpt-5.5", #"o3-mini", #"o4-mini", #"o1-preview-2024-09-12", #"gpt-4o-mini",
|
| 1025 |
info="Select the model to generate the dialogue text.",
|
| 1026 |
)
|
| 1027 |
reasoning_effort = gr.Dropdown(
|