Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def create_flashcards(content):
|
|
| 28 |
response = openai.chat.completions.create(
|
| 29 |
model="gpt-3.5-turbo",
|
| 30 |
messages=[
|
| 31 |
-
{"role": "system", "content": "You are a helpful assistant for UPSC exam preparation."},
|
| 32 |
{"role": "user", "content": prompt}
|
| 33 |
],
|
| 34 |
max_tokens=500,
|
|
|
|
| 28 |
response = openai.chat.completions.create(
|
| 29 |
model="gpt-3.5-turbo",
|
| 30 |
messages=[
|
| 31 |
+
{"role": "system", "content": "You are a helpful assistant for UPSC exam preparation and will create useful flash cards when a news URL is given as input,The flash card should include category that the topic belongs to aswell."},
|
| 32 |
{"role": "user", "content": prompt}
|
| 33 |
],
|
| 34 |
max_tokens=500,
|