Update app.py
Browse files
app.py
CHANGED
@@ -71,33 +71,16 @@ prayer_options = [
|
|
71 |
|
72 |
music_options = ["μμ
1", "μμ
2"]
|
73 |
|
74 |
-
# μ΄λ―Έμ§ URL
|
75 |
-
image_url = "http://www.sgsarang.org/user/saveDir/awd/P/0/image_35547.png?itemTime=1717509605"
|
76 |
-
|
77 |
-
# κΈ°λ κ°μ΄λ ν
μ€νΈ
|
78 |
-
guide_text = """
|
79 |
-
<h2>μμλμ 보ν κΈ°λλ¬Έ</h2>
|
80 |
-
<p>μ κ³΅ν΄ λ리λ β보νκΈ°λλ¬Έβμ μ°Έμ‘°λ§ νμκ³ νμννμ§ λ§μμμ€<br>
|
81 |
-
μ€μ§ μ±λ Ήλμ μΈλν¨μ λ°μΌμκΈ° λ°λλλ€<br>
|
82 |
-
λ, λ΄ μ리μ κ°μ‘±λ€μ μ΄λ¦, μ€λ³΄κΈ°λ λμμμ μ΄λ¦μ λ£μ΄ μ ν¬νμμμ€</p>
|
83 |
-
"""
|
84 |
-
|
85 |
-
# μΈν°νμ΄μ€ κ΅¬μ± μμ
|
86 |
-
image_html = f'<img src="{image_url}" alt="Prayer Image" style="display:block; margin:auto;">'
|
87 |
prayer_dropdown = gr.Dropdown(choices=prayer_options, label="κΈ°λλ¬Έ μ ν")
|
88 |
music_dropdown = gr.Dropdown(choices=music_options, label="λ°°κ²½μμ
μ ν")
|
89 |
-
output_text = gr.
|
90 |
output_html = gr.HTML(label="λ°°κ²½μμ
")
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
prayer_dropdown.render()
|
99 |
-
music_dropdown.render()
|
100 |
-
output_text.render()
|
101 |
-
output_html.render()
|
102 |
|
103 |
interface.launch()
|
|
|
71 |
|
72 |
music_options = ["μμ
1", "μμ
2"]
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
prayer_dropdown = gr.Dropdown(choices=prayer_options, label="κΈ°λλ¬Έ μ ν")
|
75 |
music_dropdown = gr.Dropdown(choices=music_options, label="λ°°κ²½μμ
μ ν")
|
76 |
+
output_text = gr.Textbox(label="κΈ°λλ¬Έ")
|
77 |
output_html = gr.HTML(label="λ°°κ²½μμ
")
|
78 |
|
79 |
+
interface = gr.Interface(
|
80 |
+
fn=show_prayer_and_music,
|
81 |
+
inputs=[prayer_dropdown, music_dropdown],
|
82 |
+
outputs=[output_text, output_html],
|
83 |
+
live=True
|
84 |
+
)
|
|
|
|
|
|
|
|
|
85 |
|
86 |
interface.launch()
|