Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def create_flashcards(content):
|
|
| 35 |
temperature=0.7
|
| 36 |
)
|
| 37 |
|
| 38 |
-
flashcards = response.choices[0]
|
| 39 |
return flashcards
|
| 40 |
|
| 41 |
# Function to process a single URL and generate flashcards
|
|
|
|
| 35 |
temperature=0.7
|
| 36 |
)
|
| 37 |
|
| 38 |
+
flashcards = response.choices[0].message.content.strip()
|
| 39 |
return flashcards
|
| 40 |
|
| 41 |
# Function to process a single URL and generate flashcards
|