Update app.py
Browse files
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-
|
| 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-
|
| 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-
|
| 536 |
)
|
| 537 |
claude_key = gr.Textbox(
|
| 538 |
label="Claude API Key",
|
| 539 |
type="password",
|
| 540 |
placeholder="sk-ant-...",
|
| 541 |
-
info="Required for Claude
|
| 542 |
)
|
| 543 |
|
| 544 |
selected_model = gr.Radio(
|
| 545 |
-
choices=["OpenAI GPT-
|
| 546 |
label="Select AI Model",
|
| 547 |
-
value="OpenAI GPT-
|
| 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 |
|