Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,31 +44,33 @@ def main():
|
|
44 |
|
45 |
# Final Response
|
46 |
if submit:
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
|
|
50 |
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
-
|
72 |
|
73 |
else:
|
74 |
st.warning("Click the 'Generate Quizzes' button to create quizzes.")
|
|
|
44 |
|
45 |
# Final Response
|
46 |
if submit:
|
47 |
+
questions,answers = GetLLMResponse(selected_topic_level, selected_topic, num_quizzes, model)
|
48 |
+
st.write("printing the response",questions,answers)
|
49 |
+
# with st.spinner("Generating Quizzes..."):
|
50 |
+
# questions,answers = GetLLMResponse(selected_topic_level, selected_topic, num_quizzes, model)
|
51 |
+
# st.success("Quizzes Generated!")
|
52 |
|
53 |
|
54 |
+
# st.write("printing the response",questions,answers)
|
55 |
+
# # # Display questions and answers in a table
|
56 |
+
# # if response:
|
57 |
+
# # st.subheader("Quiz Questions and Answers:")
|
58 |
+
# # # Prepare data for the table
|
59 |
+
# # # col1, col2 = st.columns(2)
|
60 |
+
# # # with col1:
|
61 |
+
# # # st.subheader("Questions")
|
62 |
+
# # # questions = response
|
63 |
+
# # # st.write(questions)
|
64 |
|
65 |
+
# # # with col2:
|
66 |
+
# # # st.subheader("Answers")
|
67 |
+
# # # answers = response
|
68 |
+
# # # st.write(answers)
|
69 |
|
70 |
+
# # st.write("printing the response",questions,answers)
|
71 |
|
72 |
+
# # else:
|
73 |
+
# # st.warning("No Quiz Questions and Answers")
|
74 |
|
75 |
else:
|
76 |
st.warning("Click the 'Generate Quizzes' button to create quizzes.")
|