mohammed3536 commited on
Commit
1cf91ba
·
verified ·
1 Parent(s): b131a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -50,7 +50,9 @@ def generate_question_with_chatgpt(context):
50
  ],
51
  }
52
 
53
- response = openai.ChatCompletion.create(data)
 
 
54
  result = response.json()
55
 
56
  print("API Response:", result) # Add this line for debugging
@@ -68,6 +70,7 @@ def generate_question_with_chatgpt(context):
68
  return generated_question
69
 
70
 
 
71
  def main():
72
  # Title of the Application
73
  st.header("🤖CB Quiz Generator🧠", divider='rainbow')
 
50
  ],
51
  }
52
 
53
+ # Replace the line below with the appropriate method from the LangChain OpenAI wrapper
54
+ response = openai.some_method(data)
55
+
56
  result = response.json()
57
 
58
  print("API Response:", result) # Add this line for debugging
 
70
  return generated_question
71
 
72
 
73
+
74
  def main():
75
  # Title of the Application
76
  st.header("🤖CB Quiz Generator🧠", divider='rainbow')