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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def generate_question_with_chatgpt(context):
50
  ],
51
  }
52
 
53
- response = openai.complete(data)
54
  result = response.json()
55
 
56
  print("API Response:", result) # Add this line for debugging
 
50
  ],
51
  }
52
 
53
+ response = openai.ChatCompletion.create(data)
54
  result = response.json()
55
 
56
  print("API Response:", result) # Add this line for debugging