Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -558,6 +558,7 @@ STANDARD_TEXT_MODELS = [
|
|
| 558 |
"gpt-5.6-sol",
|
| 559 |
"gpt-5.6-terra",
|
| 560 |
"gpt-5.6-luna",
|
|
|
|
| 561 |
"gpt-5",
|
| 562 |
"gpt-5-mini",
|
| 563 |
"gpt-4o-2024-08-06",
|
|
@@ -670,7 +671,7 @@ def conditional_llm(
|
|
| 670 |
def generate_audio(
|
| 671 |
files: list,
|
| 672 |
openai_api_key: str = None,
|
| 673 |
-
text_model: str = "gpt-5.6-sol", #o1-2024-12-17", #"o1-preview-2024-09-12",
|
| 674 |
reasoning_effort: str = "N/A",
|
| 675 |
do_web_search: bool = False,
|
| 676 |
audio_model: str = "tts-1",
|
|
@@ -1024,7 +1025,7 @@ with gr.Blocks(title="PDF to Audio", css="""
|
|
| 1024 |
text_model = gr.Dropdown(
|
| 1025 |
label="Text Generation Model",
|
| 1026 |
choices=STANDARD_TEXT_MODELS,
|
| 1027 |
-
value="gpt-5.6-sol", #"o3-mini", #"o4-mini", #"o1-preview-2024-09-12", #"gpt-4o-mini",
|
| 1028 |
info="Select the model to generate the dialogue text.",
|
| 1029 |
)
|
| 1030 |
reasoning_effort = gr.Dropdown(
|
|
|
|
| 558 |
"gpt-5.6-sol",
|
| 559 |
"gpt-5.6-terra",
|
| 560 |
"gpt-5.6-luna",
|
| 561 |
+
"gpt-6-astra",
|
| 562 |
"gpt-5",
|
| 563 |
"gpt-5-mini",
|
| 564 |
"gpt-4o-2024-08-06",
|
|
|
|
| 671 |
def generate_audio(
|
| 672 |
files: list,
|
| 673 |
openai_api_key: str = None,
|
| 674 |
+
text_model: str = "gpt-6-astra", #"gpt-5.6-sol", #o1-2024-12-17", #"o1-preview-2024-09-12",
|
| 675 |
reasoning_effort: str = "N/A",
|
| 676 |
do_web_search: bool = False,
|
| 677 |
audio_model: str = "tts-1",
|
|
|
|
| 1025 |
text_model = gr.Dropdown(
|
| 1026 |
label="Text Generation Model",
|
| 1027 |
choices=STANDARD_TEXT_MODELS,
|
| 1028 |
+
value="gpt-6-astra", #"gpt-5.6-sol", #"o3-mini", #"o4-mini", #"o1-preview-2024-09-12", #"gpt-4o-mini",
|
| 1029 |
info="Select the model to generate the dialogue text.",
|
| 1030 |
)
|
| 1031 |
reasoning_effort = gr.Dropdown(
|