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