Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def generate_question_with_chatgpt(context):
|
|
50 |
],
|
51 |
}
|
52 |
|
53 |
-
response = openai.
|
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
|