Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -291,14 +291,14 @@ def generate_cards_batch(
|
|
291 |
# Add near the top with other constants
|
292 |
AVAILABLE_MODELS = [
|
293 |
{
|
294 |
-
"value": "gpt-4.1
|
295 |
-
"label": "gpt-4.1
|
296 |
-
"description": "
|
297 |
},
|
298 |
{
|
299 |
-
"value": "gpt-4.1",
|
300 |
-
"label": "gpt-4.1 (
|
301 |
-
"description": "
|
302 |
},
|
303 |
]
|
304 |
|
@@ -1118,8 +1118,8 @@ with gr.Blocks(
|
|
1118 |
# Advanced Settings in Accordion
|
1119 |
with gr.Accordion("Advanced Settings", open=False):
|
1120 |
model_choice = gr.Dropdown(
|
1121 |
-
choices=["gpt-4.1
|
1122 |
-
value="gpt-4.1-
|
1123 |
label="Model Selection",
|
1124 |
info="Select the AI model to use for generation",
|
1125 |
)
|
@@ -1127,9 +1127,9 @@ with gr.Blocks(
|
|
1127 |
# Add tooltip/description for models
|
1128 |
model_info = gr.Markdown("""
|
1129 |
**Model Information:**
|
1130 |
-
- **gpt-4.1
|
1131 |
-
- **gpt-4.1**:
|
1132 |
-
""")
|
1133 |
|
1134 |
topic_number = gr.Slider(
|
1135 |
label="Number of Topics",
|
|
|
291 |
# Add near the top with other constants
|
292 |
AVAILABLE_MODELS = [
|
293 |
{
|
294 |
+
"value": "gpt-4.1", # Corrected model name
|
295 |
+
"label": "gpt-4.1 (Best Quality)", # Corrected label
|
296 |
+
"description": "Highest quality, slower generation", # Corrected description
|
297 |
},
|
298 |
{
|
299 |
+
"value": "gpt-4.1-nano",
|
300 |
+
"label": "gpt-4.1 Nano (Fast & Efficient)",
|
301 |
+
"description": "Optimized for speed and lower cost",
|
302 |
},
|
303 |
]
|
304 |
|
|
|
1118 |
# Advanced Settings in Accordion
|
1119 |
with gr.Accordion("Advanced Settings", open=False):
|
1120 |
model_choice = gr.Dropdown(
|
1121 |
+
choices=["gpt-4.1", "gpt-4.1-nano"], # Corrected choices
|
1122 |
+
value="gpt-4.1-nano", # Changed default to nano as it's faster/cheaper
|
1123 |
label="Model Selection",
|
1124 |
info="Select the AI model to use for generation",
|
1125 |
)
|
|
|
1127 |
# Add tooltip/description for models
|
1128 |
model_info = gr.Markdown("""
|
1129 |
**Model Information:**
|
1130 |
+
- **gpt-4.1**: Highest quality, slower generation
|
1131 |
+
- **gpt-4.1-nano**: Optimized for speed and lower cost
|
1132 |
+
""") # Corrected descriptions
|
1133 |
|
1134 |
topic_number = gr.Slider(
|
1135 |
label="Number of Topics",
|