AnishaG0201 commited on
Commit
02f9f75
1 Parent(s): 0d82915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -17
app.py CHANGED
@@ -47,26 +47,28 @@ def main():
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")
70
 
71
  else:
72
  st.warning("Click the 'Generate Quizzes' button to create quizzes.")
 
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
+
52
+ st.write("printing the response",questions,answers)
53
+ # # Display questions and answers in a table
54
+ # if response:
55
+ # st.subheader("Quiz Questions and Answers:")
56
+ # # Prepare data for the table
57
+ # # col1, col2 = st.columns(2)
58
+ # # with col1:
59
+ # # st.subheader("Questions")
60
+ # # questions = response
61
+ # # st.write(questions)
62
 
63
+ # # with col2:
64
+ # # st.subheader("Answers")
65
+ # # answers = response
66
+ # # st.write(answers)
67
 
68
+ # st.write("printing the response",questions,answers)
69
 
70
+ # else:
71
+ # st.warning("No Quiz Questions and Answers")
72
 
73
  else:
74
  st.warning("Click the 'Generate Quizzes' button to create quizzes.")