Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def scrape_content(url):
|
|
| 25 |
def create_flashcards(content):
|
| 26 |
prompt = f"Create flashcards for UPSC exam preparation from the following content:\n\n{content}\n\n"
|
| 27 |
|
| 28 |
-
response = openai.
|
| 29 |
model="gpt-3.5-turbo",
|
| 30 |
messages=[
|
| 31 |
{"role": "system", "content": "You are a helpful assistant for UPSC exam preparation."},
|
|
|
|
| 25 |
def create_flashcards(content):
|
| 26 |
prompt = f"Create flashcards for UPSC exam preparation from the following content:\n\n{content}\n\n"
|
| 27 |
|
| 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."},
|