englissi commited on
Commit
295f17f
·
verified ·
1 Parent(s): 03a7789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -9,7 +9,8 @@ def show_prayer_and_music(prayer_selection, music_selection):
9
 
10
  music_urls = {
11
  "음악 1": "https://huggingface.co/datasets/englissi/bgm/resolve/main/We%20Wish%20You%20a%20Merry%20Christmas_%EC%9D%B4%EB%82%98%EC%9D%BC.wav",
12
- "음악 2": "https://huggingface.co/datasets/englissi/bgm/resolve/main/%EC%98%A4%20%EA%B1%B0%EB%A3%A9%ED%95%9C%20%EB%B0%A4(Oh%20Holy%20Night)_%EC%9D%B4%EC%9E%AC%EB%AC%B8_%EA%B8%B8%EB%B3%91%EB%AF%BC(%EB%B2%A0%EC%9D%B4%EC%8A%A4%EB%B0%94%EB%A6%AC%ED%86%A4).wav"
 
13
  }
14
 
15
  prayer_text = prayers.get(prayer_selection, "선택된 기도가 없습니다.")
@@ -17,7 +18,7 @@ def show_prayer_and_music(prayer_selection, music_selection):
17
 
18
  html_code = f"""
19
  <audio id="background-music" controls autoplay loop>
20
- <source src="{music_url}" type="audio/wav">
21
  Your browser does not support the audio element.
22
  </audio>
23
  <style>
@@ -30,7 +31,7 @@ def show_prayer_and_music(prayer_selection, music_selection):
30
  return prayer_text, html_code
31
 
32
  prayer_options = ["보혈의 기도", "자녀를 위한 기도", "치유기도"]
33
- music_options = ["음악 1", "음악 2"]
34
 
35
  prayer_dropdown = gr.Dropdown(choices=prayer_options, label="기도문 선택")
36
  music_dropdown = gr.Dropdown(choices=music_options, label="배경음악 선택")
 
9
 
10
  music_urls = {
11
  "음악 1": "https://huggingface.co/datasets/englissi/bgm/resolve/main/We%20Wish%20You%20a%20Merry%20Christmas_%EC%9D%B4%EB%82%98%EC%9D%BC.wav",
12
+ "음악 2": "https://huggingface.co/datasets/englissi/bgm/resolve/main/%EC%98%A4%20%EA%B1%B0%EB%A3%A9%ED%95%9C%20%EB%B0%A4(Oh%20Holy%20Night)_%EC%9D%B4%EC%9E%AC%EB%AC%B8_%EA%B8%B8%EB%B3%91%EB%AF%BC(%EB%B2%A0%EC%9D%B4%EC%8A%A4%EB%B0%94%EB%A6%AC%ED%86%A4).wav",
13
+ "음악 3": "https://huggingface.co/datasets/englissi/bgm/resolve/main/14%20%EC%98%81%EA%B4%91%EC%9D%98%20%EC%A3%BC%EB%8B%98.mp3"
14
  }
15
 
16
  prayer_text = prayers.get(prayer_selection, "선택된 기도가 없습니다.")
 
18
 
19
  html_code = f"""
20
  <audio id="background-music" controls autoplay loop>
21
+ <source src="{music_url}" type="audio/mpeg">
22
  Your browser does not support the audio element.
23
  </audio>
24
  <style>
 
31
  return prayer_text, html_code
32
 
33
  prayer_options = ["보혈의 기도", "자녀를 위한 기도", "치유기도"]
34
+ music_options = ["음악 1", "음악 2", "음악 3"]
35
 
36
  prayer_dropdown = gr.Dropdown(choices=prayer_options, label="기도문 선택")
37
  music_dropdown = gr.Dropdown(choices=music_options, label="배경음악 선택")