Rathapoom commited on
Commit
95beb54
·
verified ·
1 Parent(s): 95794f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
86
  ]
87
  )
88
  return response.choices[0].message.content
89
- except openai.error.APIConnectionError:
90
  retries += 1
91
  time.sleep(2) # Wait for 2 seconds before retrying
92
  if retries == max_retries:
 
86
  ]
87
  )
88
  return response.choices[0].message.content
89
+ except openai.APIConnectionError:
90
  retries += 1
91
  time.sleep(2) # Wait for 2 seconds before retrying
92
  if retries == max_retries: