mouadenna commited on
Commit
f103b06
1 Parent(s): fc0dd83

Update pages/5_QuizMaster.py

Browse files
Files changed (1) hide show
  1. pages/5_QuizMaster.py +57 -1
pages/5_QuizMaster.py CHANGED
@@ -47,6 +47,62 @@ Example of output:
47
  Please generate similar JSON objects for new questions on basic phonics.
48
 
49
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  import streamlit as st
51
  def add_logo():
52
  st.markdown(
@@ -202,7 +258,7 @@ category = 'quizes'
202
  if category is None:
203
  st.warning('Please select a subject to start learning', icon="⚠️")
204
  else:
205
- QuestionList = get_question()
206
  # st.write(QuestionList)
207
  len_response = len(QuestionList)
208
  if len_response == 0:
 
47
  Please generate similar JSON objects for new questions on basic phonics.
48
 
49
  """
50
+
51
+
52
+ QS=[
53
+ {
54
+ "question": "What is the beginning sound of the word 'apple'?",
55
+ "incorrect_answers": ["m", "p", "r"],
56
+ "correct_answer": "a"
57
+ },
58
+ {
59
+ "question": "Which word has the same ending sound as 'sun'?",
60
+ "incorrect_answers": ["moon", "run", "fun"],
61
+ "correct_answer": "bun"
62
+ },
63
+ {
64
+ "question": "Which word rhymes with 'ship'?",
65
+ "incorrect_answers": ["dip", "rip", "sip"],
66
+ "correct_answer": "tip"
67
+ },
68
+ {
69
+ "question": "What is the long vowel sound in the word 'rain'?",
70
+ "incorrect_answers": ["a", "e", "i"],
71
+ "correct_answer": "ai"
72
+ },
73
+ {
74
+ "question": "Which word has the same beginning sound as 'elephant'?",
75
+ "incorrect_answers": ["igloo", "apple", "umbrella"],
76
+ "correct_answer": "egg"
77
+ },
78
+ {
79
+ "question": "Which word has the same ending sound as 'kite'?",
80
+ "incorrect_answers": ["bike", "site", "dike"],
81
+ "correct_answer": "light"
82
+ },
83
+ {
84
+ "question": "What is the short vowel sound in the word 'dog'?",
85
+ "incorrect_answers": ["a", "e", "i"],
86
+ "correct_answer": "o"
87
+ },
88
+ {
89
+ "question": "Which word has the same beginning sound as 'under'?",
90
+ "incorrect_answers": ["apple", "egg", "umbrella"],
91
+ "correct_answer": "up"
92
+ },
93
+ {
94
+ "question": "Which word has the same ending sound as 'bat'?",
95
+ "incorrect_answers": ["cat", "rat", "hat"],
96
+ "correct_answer": "mat"
97
+ },
98
+ {
99
+ "question": "What is the long vowel sound in the word 'boot'?",
100
+ "incorrect_answers": ["a", "e", "i"],
101
+ "correct_answer": "oo"
102
+ }
103
+ ]
104
+
105
+
106
  import streamlit as st
107
  def add_logo():
108
  st.markdown(
 
258
  if category is None:
259
  st.warning('Please select a subject to start learning', icon="⚠️")
260
  else:
261
+ QuestionList = QS
262
  # st.write(QuestionList)
263
  len_response = len(QuestionList)
264
  if len_response == 0: