Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def text_to_speech(text):
|
|
35 |
def play_correct_sound():
|
36 |
pygame.mixer.init()
|
37 |
# Load the sound file
|
38 |
-
sound_path = "
|
39 |
pygame.mixer.music.load(sound_path)
|
40 |
# Play the sound file
|
41 |
pygame.mixer.music.play()
|
@@ -66,7 +66,7 @@ def quiz():
|
|
66 |
if st.button("ุงูุชุญูู"):
|
67 |
# Check if the user's choice is correct
|
68 |
if user_choice == correct_answer:
|
69 |
-
play_correct_sound()
|
70 |
st.success("ุชูุงูููุง! ููุฏ ูุฒุช! ๐๐๐")
|
71 |
else:
|
72 |
st.error("ุขุณูุ ูุฐุง ุบูุฑ ุตุญูุญ. ุงูุฅุฌุงุจุฉ ุงูุตุญูุญุฉ ูู: " + correct_answer + " ๐")
|
|
|
35 |
def play_correct_sound():
|
36 |
pygame.mixer.init()
|
37 |
# Load the sound file
|
38 |
+
sound_path = "success.mp3"
|
39 |
pygame.mixer.music.load(sound_path)
|
40 |
# Play the sound file
|
41 |
pygame.mixer.music.play()
|
|
|
66 |
if st.button("ุงูุชุญูู"):
|
67 |
# Check if the user's choice is correct
|
68 |
if user_choice == correct_answer:
|
69 |
+
#play_correct_sound()
|
70 |
st.success("ุชูุงูููุง! ููุฏ ูุฒุช! ๐๐๐")
|
71 |
else:
|
72 |
st.error("ุขุณูุ ูุฐุง ุบูุฑ ุตุญูุญ. ุงูุฅุฌุงุจุฉ ุงูุตุญูุญุฉ ูู: " + correct_answer + " ๐")
|