AnishaG0201 commited on
Commit
85d5619
1 Parent(s): 02f9f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -20
app.py CHANGED
@@ -44,31 +44,33 @@ def main():
44
 
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
 
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.")
 
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.")