Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,8 @@ def generate_mcqs_on_topic(text, topic, num_mcqs=5):
|
|
| 34 |
|
| 35 |
def generate_question_with_chatgpt(context, topic):
|
| 36 |
client = OpenAI()
|
|
|
|
|
|
|
| 37 |
# Initializing the default value
|
| 38 |
generated_question = {
|
| 39 |
'content': "Unable to generate a question..",
|
|
|
|
| 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..",
|