Update app.py
Browse files
app.py
CHANGED
@@ -6,26 +6,26 @@ from io import BytesIO
|
|
6 |
|
7 |
# Manually add definitions
|
8 |
word_definitions = {
|
9 |
-
"
|
10 |
-
"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
}
|
18 |
|
19 |
# Corresponding image URLs (example URLs, replace with actual GitHub links)
|
20 |
image_urls = {
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
}
|
30 |
|
31 |
def generate_output(word):
|
|
|
6 |
|
7 |
# Manually add definitions
|
8 |
word_definitions = {
|
9 |
+
"quaint": "Having an old-fashioned or unusual quality or appearance that is usually attractive or appealing.",
|
10 |
+
"explore": "To travel over or through (a place) in order to learn more about it or to find something.",
|
11 |
+
"cheerful": "Feeling or showing happiness.",
|
12 |
+
"peddler": "Someone who sells things in small amounts often by traveling to different places.",
|
13 |
+
"curious": "Having a desire to learn or know more about something or someone.",
|
14 |
+
"enthusiasm": "Strong excitement about something; a strong feeling of active interest in something that you like or enjoy.",
|
15 |
+
"skeptical": "Having or expressing doubt about something.",
|
16 |
+
"whisper": "To speak very softly or quietly."
|
17 |
}
|
18 |
|
19 |
# Corresponding image URLs (example URLs, replace with actual GitHub links)
|
20 |
image_urls = {
|
21 |
+
"quaint": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/001.png",
|
22 |
+
"explore": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/002.png",
|
23 |
+
"cheerful": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/003.png",
|
24 |
+
"peddler": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/004.png",
|
25 |
+
"curious": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/005.png",
|
26 |
+
"enthusiasm": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/006.png",
|
27 |
+
"skeptical": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/007.png",
|
28 |
+
"whisper": "https://raw.githubusercontent.com/PAMUS-JP30/flashcard/main/008.png"
|
29 |
}
|
30 |
|
31 |
def generate_output(word):
|