Update app.py
Browse files
app.py
CHANGED
|
@@ -978,43 +978,27 @@ def create_interface():
|
|
| 978 |
# 커스텀 오디오 플레이어
|
| 979 |
gr.Markdown("## 聽身, 請神 (몸의 소리를 듣고 신을 청하다) ")
|
| 980 |
gr.HTML("""
|
| 981 |
-
<div class="
|
| 982 |
-
<
|
| 983 |
-
|
| 984 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 985 |
</div>
|
| 986 |
-
<script>
|
| 987 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 988 |
-
const audio = document.getElementById('bgMusic');
|
| 989 |
-
if(audio) {
|
| 990 |
-
console.log('Audio element found');
|
| 991 |
-
audio.onerror = function(e) {
|
| 992 |
-
console.error('Audio error:', e);
|
| 993 |
-
};
|
| 994 |
-
audio.onloadeddata = function() {
|
| 995 |
-
console.log('Audio loaded successfully');
|
| 996 |
-
};
|
| 997 |
-
} else {
|
| 998 |
-
console.error('Audio element not found');
|
| 999 |
-
}
|
| 1000 |
-
});
|
| 1001 |
-
</script>
|
| 1002 |
<style>
|
| 1003 |
-
.
|
| 1004 |
width: 100%;
|
|
|
|
| 1005 |
margin: 20px auto;
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
}
|
| 1009 |
-
audio {
|
| 1010 |
-
width: 100%;
|
| 1011 |
-
max-width: 500px;
|
| 1012 |
-
margin: 0 auto;
|
| 1013 |
-
display: block;
|
| 1014 |
}
|
| 1015 |
</style>
|
| 1016 |
""")
|
| 1017 |
-
|
| 1018 |
with gr.Column():
|
| 1019 |
reflection_input = gr.Textbox(
|
| 1020 |
label="기록과 함께 마음의 번잡함을 내려놓으세요. 본 정보는 저장되지 않습니다.",
|
|
|
|
| 978 |
# 커스텀 오디오 플레이어
|
| 979 |
gr.Markdown("## 聽身, 請神 (몸의 소리를 듣고 신을 청하다) ")
|
| 980 |
gr.HTML("""
|
| 981 |
+
<div class="soundcloud-container">
|
| 982 |
+
<iframe
|
| 983 |
+
width="100%"
|
| 984 |
+
height="166"
|
| 985 |
+
scrolling="no"
|
| 986 |
+
frameborder="no"
|
| 987 |
+
allow="autoplay"
|
| 988 |
+
src="https://w.soundcloud.com/player/?url=https%3A//soundcloud.com/9arage/demo&color=%23ff5500&auto_play=true&hide_related=true&show_comments=false&show_user=false&show_reposts=false&show_teaser=false"
|
| 989 |
+
></iframe>
|
| 990 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 991 |
<style>
|
| 992 |
+
.soundcloud-container {
|
| 993 |
width: 100%;
|
| 994 |
+
max-width: 800px;
|
| 995 |
margin: 20px auto;
|
| 996 |
+
border-radius: 12px;
|
| 997 |
+
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 998 |
}
|
| 999 |
</style>
|
| 1000 |
""")
|
| 1001 |
+
|
| 1002 |
with gr.Column():
|
| 1003 |
reflection_input = gr.Textbox(
|
| 1004 |
label="기록과 함께 마음의 번잡함을 내려놓으세요. 본 정보는 저장되지 않습니다.",
|