Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def generate_question_with_chatgpt(context):
|
|
51 |
}
|
52 |
|
53 |
# Replace the line below with the appropriate method from the LangChain OpenAI wrapper
|
54 |
-
response = openai.
|
55 |
|
56 |
result = response.json()
|
57 |
|
|
|
51 |
}
|
52 |
|
53 |
# Replace the line below with the appropriate method from the LangChain OpenAI wrapper
|
54 |
+
response = openai.chatcompletion.create(data)
|
55 |
|
56 |
result = response.json()
|
57 |
|