mohammed3536 commited on
Commit
6fe4ac2
1 Parent(s): c73cad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -37,6 +37,7 @@ def generate_mcqs_on_topic(text, topic, num_mcqs=5):
37
  return mcqs
38
 
39
  def generate_question_with_chatgpt(context, topic):
 
40
  # Initializing the default value
41
  generated_question = {
42
  'content': "Unable to generate a question..",
 
37
  return mcqs
38
 
39
  def generate_question_with_chatgpt(context, topic):
40
+ client=OpenAI()
41
  # Initializing the default value
42
  generated_question = {
43
  'content': "Unable to generate a question..",