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