dindizz commited on
Commit
ec573ca
·
verified ·
1 Parent(s): da7c0ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def create_flashcards(content):
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
 
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