Rathapoom commited on
Commit
95794f9
·
verified ·
1 Parent(s): 102fc7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -83,9 +83,7 @@ def generate_questions_with_retry(knowledge_material, question_type, cognitive_l
83
  messages=[
84
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},
85
  {"role": "user", "content": prompt}
86
- ],
87
- max_tokens=1000,
88
- temperature=0.7
89
  )
90
  return response.choices[0].message.content
91
  except openai.error.APIConnectionError:
 
83
  messages=[
84
  {"role": "system", "content": "You are a helpful assistant for generating exam questions."},
85
  {"role": "user", "content": prompt}
86
+ ]
 
 
87
  )
88
  return response.choices[0].message.content
89
  except openai.error.APIConnectionError: