Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def create_persona(text):
|
|
| 31 |
response = openai.ChatCompletion.create(
|
| 32 |
model="gpt-3.5-turbo",
|
| 33 |
messages=[
|
| 34 |
-
{"role": "system", "content": "You are a
|
| 35 |
{"role": "user", "content": f"Create a persona based on this text: {text}"},
|
| 36 |
]
|
| 37 |
)
|
|
|
|
| 31 |
response = openai.ChatCompletion.create(
|
| 32 |
model="gpt-3.5-turbo",
|
| 33 |
messages=[
|
| 34 |
+
{"role": "system", "content": "You are an expert at summarizing content to provide a factual persona."},
|
| 35 |
{"role": "user", "content": f"Create a persona based on this text: {text}"},
|
| 36 |
]
|
| 37 |
)
|