gasbaoui commited on
Commit
f166892
โ€ข
1 Parent(s): 3b84120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "\success.mp3"
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 + " ๐Ÿ˜”")