Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
|
|
78 |
retries = 0
|
79 |
while retries < max_retries:
|
80 |
try:
|
81 |
-
response =
|
82 |
model="gpt-4o-mini",
|
83 |
messages=[
|
84 |
{"role": "system", "content": "You are a helpful assistant for generating exam questions."},
|
|
|
78 |
retries = 0
|
79 |
while retries < max_retries:
|
80 |
try:
|
81 |
+
response = openai.ChatCompletion.create(
|
82 |
model="gpt-4o-mini",
|
83 |
messages=[
|
84 |
{"role": "system", "content": "You are a helpful assistant for generating exam questions."},
|