0xnu commited on
Commit
0def27e
·
verified ·
1 Parent(s): c2e52aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -414,7 +414,7 @@ Project Requirements: {user_input}"""
414
  formatted_prompt = prompt.format(user_input=user_input)
415
 
416
  response = client.chat.completions.create(
417
- model="gpt-4o", # Latest GPT model
418
  messages=[
419
  {"role": "system", "content": "You are an expert SEO professional. Follow the prompt instructions precisely. Use British English, be direct and actionable, think in first principles, and consider second and third-order consequences."},
420
  {"role": "user", "content": formatted_prompt}
@@ -434,7 +434,7 @@ Project Requirements: {user_input}"""
434
  formatted_prompt = prompt.format(user_input=user_input)
435
 
436
  message = client.messages.create(
437
- model="claude-3-5-sonnet-20241022", # Latest Claude model
438
  max_tokens=2000,
439
  temperature=0.7,
440
  system="You are an expert SEO professional. Follow the prompt instructions precisely. Use British English, be direct and actionable, think in first principles, and consider second and third-order consequences.",
@@ -532,19 +532,19 @@ def create_interface():
532
  label="OpenAI API Key",
533
  type="password",
534
  placeholder="sk-proj-...",
535
- info="Required for GPT-4o analysis"
536
  )
537
  claude_key = gr.Textbox(
538
  label="Claude API Key",
539
  type="password",
540
  placeholder="sk-ant-...",
541
- info="Required for Claude 3.5 Sonnet analysis"
542
  )
543
 
544
  selected_model = gr.Radio(
545
- choices=["OpenAI GPT-4o", "Claude 3.5 Sonnet"],
546
  label="Select AI Model",
547
- value="OpenAI GPT-4o",
548
  info="Choose your preferred AI model"
549
  )
550
 
 
414
  formatted_prompt = prompt.format(user_input=user_input)
415
 
416
  response = client.chat.completions.create(
417
+ model="gpt-5", # Latest GPT model
418
  messages=[
419
  {"role": "system", "content": "You are an expert SEO professional. Follow the prompt instructions precisely. Use British English, be direct and actionable, think in first principles, and consider second and third-order consequences."},
420
  {"role": "user", "content": formatted_prompt}
 
434
  formatted_prompt = prompt.format(user_input=user_input)
435
 
436
  message = client.messages.create(
437
+ model="claude-sonnet-4-20250514", # Latest Claude model
438
  max_tokens=2000,
439
  temperature=0.7,
440
  system="You are an expert SEO professional. Follow the prompt instructions precisely. Use British English, be direct and actionable, think in first principles, and consider second and third-order consequences.",
 
532
  label="OpenAI API Key",
533
  type="password",
534
  placeholder="sk-proj-...",
535
+ info="Required for GPT-5 analysis"
536
  )
537
  claude_key = gr.Textbox(
538
  label="Claude API Key",
539
  type="password",
540
  placeholder="sk-ant-...",
541
+ info="Required for Claude 4 Sonnet analysis"
542
  )
543
 
544
  selected_model = gr.Radio(
545
+ choices=["OpenAI GPT-5", "Claude 4 Sonnet"],
546
  label="Select AI Model",
547
+ value="OpenAI GPT-5",
548
  info="Choose your preferred AI model"
549
  )
550