brickfrog commited on
Commit
993126d
·
verified ·
1 Parent(s): a8e9348

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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-mini", # Default model
295
- "label": "gpt-4.1 Mini (Fastest)",
296
- "description": "Balanced speed and quality",
297
  },
298
  {
299
- "value": "gpt-4.1",
300
- "label": "gpt-4.1 (Better Quality)",
301
- "description": "Higher quality, slower generation",
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-mini", "gpt-4.1"],
1122
- value="gpt-4.1-mini",
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-mini**: Fastest option, good for most use cases
1131
- - **gpt-4.1**: Better quality, takes longer to generate
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",