englissi commited on
Commit
faebf08
·
verified ·
1 Parent(s): 23325d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -92
app.py CHANGED
@@ -7,26 +7,12 @@ import os
7
 
8
  # Cloze questions
9
  cloze_questions = [
10
- {
11
- "question": "In the small mountain village of Echo Ridge, adventure [BLANK] a part of everyday life.",
12
- "answer": "was",
13
- "hint": "be"
14
- },
15
- {
16
- "question": "Among these children [BLANK] a bright-eyed eighth grader named Alex.",
17
- "answer": "was",
18
- "hint": "be"
19
- },
20
  {
21
  "question": "Alex [BLANK] for his daring spirit and his love for exploring the rugged landscapes around Echo Ridge.",
22
  "answer": "was known",
23
  "hint": "know"
24
  },
25
- {
26
- "question": "He [BLANK] a particular fascination with the old maps and tales of hidden treasures that had been lost in the mountains centuries ago.",
27
- "answer": "had",
28
- "hint": "have"
29
- },
30
  {
31
  "question": "One day, while exploring the local library, Alex [BLANK] upon an ancient map tucked inside a forgotten book on village lore.",
32
  "answer": "stumbled",
@@ -56,81 +42,6 @@ cloze_questions = [
56
  "question": "They [BLANK] their route, took note of landmarks, and readied themselves for any challenges they might face.",
57
  "answer": "planned",
58
  "hint": "plan"
59
- },
60
- {
61
- "question": "Their journey [BLANK] at dawn.",
62
- "answer": "began",
63
- "hint": "begin"
64
- },
65
- {
66
- "question": "They [BLANK] through dense forests, crossed rushing streams, and climbed steep cliffs.",
67
- "answer": "trekked",
68
- "hint": "trek"
69
- },
70
- {
71
- "question": "Along the way, they [BLANK] various wildlife and navigated through tricky terrains, their map guiding them every step of the way.",
72
- "answer": "encountered",
73
- "hint": "encounter"
74
- },
75
- {
76
- "question": "After hours of hiking, they finally [BLANK] Whispering Hollow.",
77
- "answer": "reached",
78
- "hint": "reach"
79
- },
80
- {
81
- "question": "The cave [BLANK] more magnificent than they had imagined, filled with intricate stalactites and echoes of dripping water.",
82
- "answer": "was",
83
- "hint": "be"
84
- },
85
- {
86
- "question": "Using their flashlights, they [BLANK] deeper into the cave, guided by the markings on the map.",
87
- "answer": "ventured",
88
- "hint": "venture"
89
- },
90
- {
91
- "question": "As they [BLANK] the heart of the cave, they discovered an ancient chest hidden behind a fallen boulder.",
92
- "answer": "reached",
93
- "hint": "reach"
94
- },
95
- {
96
- "question": "With hearts pounding, they [BLANK] the boulder and opened the chest.",
97
- "answer": "moved",
98
- "hint": "move"
99
- },
100
- {
101
- "question": "Inside, instead of gold or jewels, they [BLANK] a collection of old artifacts: pottery, coins, and a beautifully carved statuette of an eagle — the Guardian of the Glen.",
102
- "answer": "found",
103
- "hint": "find"
104
- },
105
- {
106
- "question": "Realizing the historical significance of their find, they [BLANK] to donate the artifacts to the local museum.",
107
- "answer": "decided",
108
- "hint": "decide"
109
- },
110
- {
111
- "question": "The village [BLANK] their discovery, and the children were hailed as heroes.",
112
- "answer": "celebrated",
113
- "hint": "celebrate"
114
- },
115
- {
116
- "question": "Their adventure [BLANK] the community together, sparking a renewed interest in the history and legends of Echo Ridge.",
117
- "answer": "brought",
118
- "hint": "bring"
119
- },
120
- {
121
- "question": "Alex, Mia, and Sam [BLANK] local legends, known not only for their daring but also for their spirit of discovery and respect for heritage.",
122
- "answer": "became",
123
- "hint": "become"
124
- },
125
- {
126
- "question": "They [BLANK] to explore the mountains, each adventure strengthening their friendship and deepening their connection to their village.",
127
- "answer": "continued",
128
- "hint": "continue"
129
- },
130
- {
131
- "question": "The legend of the Guardian of the Glen [BLANK] on, not just as a protector but as a symbol of adventure and discovery, inspiring future generations to explore the mysteries of Echo Ridge.",
132
- "answer": "lived",
133
- "hint": "live"
134
  }
135
  ]
136
 
@@ -208,7 +119,7 @@ def start_quiz(name):
208
 
209
  # Create the Gradio interface
210
  with gr.Blocks() as iface:
211
- gr.Markdown("# Listening Cloze Test (총문항수 27개)")
212
  gr.Markdown("**신호음이 들리는 빈칸에 들어갈 동사의 형태를 써보세요. (문장 전체를 쓰지 않습니다.)**")
213
  name_input = gr.Textbox(label="Enter your name")
214
  start_button = gr.Button("Start Quiz")
@@ -228,4 +139,4 @@ with gr.Blocks() as iface:
228
  gr.Markdown("<img src='https://github.com/englissi/englissi/blob/4f8a7cc7c7194132422e05081fd7d9502c3c4c65/Sample/image%20matching.webp' alt='Image' />")
229
  gr.Markdown("[Click here to visit the matching game](http://englissi-matching.hf.space)")
230
 
231
- iface.launch(share=True)
 
7
 
8
  # Cloze questions
9
  cloze_questions = [
10
+
 
 
 
 
 
 
 
 
 
11
  {
12
  "question": "Alex [BLANK] for his daring spirit and his love for exploring the rugged landscapes around Echo Ridge.",
13
  "answer": "was known",
14
  "hint": "know"
15
  },
 
 
 
 
 
16
  {
17
  "question": "One day, while exploring the local library, Alex [BLANK] upon an ancient map tucked inside a forgotten book on village lore.",
18
  "answer": "stumbled",
 
42
  "question": "They [BLANK] their route, took note of landmarks, and readied themselves for any challenges they might face.",
43
  "answer": "planned",
44
  "hint": "plan"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  }
46
  ]
47
 
 
119
 
120
  # Create the Gradio interface
121
  with gr.Blocks() as iface:
122
+ gr.Markdown("# Listening Cloze Test (총문항수 7개)")
123
  gr.Markdown("**신호음이 들리는 빈칸에 들어갈 동사의 형태를 써보세요. (문장 전체를 쓰지 않습니다.)**")
124
  name_input = gr.Textbox(label="Enter your name")
125
  start_button = gr.Button("Start Quiz")
 
139
  gr.Markdown("<img src='https://github.com/englissi/englissi/blob/4f8a7cc7c7194132422e05081fd7d9502c3c4c65/Sample/image%20matching.webp' alt='Image' />")
140
  gr.Markdown("[Click here to visit the matching game](http://englissi-matching.hf.space)")
141
 
142
+ iface.launch(share=True)