mohammed3536 commited on
Commit
77c2ee2
1 Parent(s): 52d5182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -33,9 +33,6 @@ def generate_mcqs_on_topic(text, topic, num_mcqs=5):
33
  return mcqs
34
 
35
  def generate_question_with_chatgpt(context, topic):
36
- client = OpenAI()
37
- # LangChain OpenAI wrapper
38
- client = OpenAI(api_key="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")
39
  # Initializing the default value
40
  generated_question = {
41
  'content': "Unable to generate a question..",
@@ -100,6 +97,7 @@ if __name__ == "__main__":
100
 
101
 
102
 
 
103
 
104
 
105
 
 
33
  return mcqs
34
 
35
  def generate_question_with_chatgpt(context, topic):
 
 
 
36
  # Initializing the default value
37
  generated_question = {
38
  'content': "Unable to generate a question..",
 
97
 
98
 
99
 
100
+
101
 
102
 
103