Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ def analyze_text(text):
|
|
| 90 |
try:
|
| 91 |
if new_openai:
|
| 92 |
response = client.chat.completions.create(
|
| 93 |
-
model="gpt-3.5-turbo
|
| 94 |
messages=[
|
| 95 |
{"role": "system", "content": "You are a forensic text analysis AI specializing in detecting AI-generated content with extreme precision."},
|
| 96 |
{"role": "user", "content": expert_prompt}
|
|
@@ -101,7 +101,7 @@ def analyze_text(text):
|
|
| 101 |
return response.choices[0].message.content
|
| 102 |
else:
|
| 103 |
response = openai.ChatCompletion.create(
|
| 104 |
-
model="gpt-3.5-turbo
|
| 105 |
messages=[
|
| 106 |
{"role": "system", "content": "You are a forensic text analysis AI specializing in detecting AI-generated content with extreme precision."},
|
| 107 |
{"role": "user", "content": expert_prompt}
|
|
|
|
| 90 |
try:
|
| 91 |
if new_openai:
|
| 92 |
response = client.chat.completions.create(
|
| 93 |
+
model="gpt-3.5-turbo", # Fixed model ID
|
| 94 |
messages=[
|
| 95 |
{"role": "system", "content": "You are a forensic text analysis AI specializing in detecting AI-generated content with extreme precision."},
|
| 96 |
{"role": "user", "content": expert_prompt}
|
|
|
|
| 101 |
return response.choices[0].message.content
|
| 102 |
else:
|
| 103 |
response = openai.ChatCompletion.create(
|
| 104 |
+
model="gpt-3.5-turbo", # Fixed model ID
|
| 105 |
messages=[
|
| 106 |
{"role": "system", "content": "You are a forensic text analysis AI specializing in detecting AI-generated content with extreme precision."},
|
| 107 |
{"role": "user", "content": expert_prompt}
|