Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -87,45 +87,6 @@ def main():
|
|
87 |
gr.set_static_paths([PREVIEW_DIR])
|
88 |
|
89 |
with gr.Blocks() as demo:
|
90 |
-
# Include global CSS styles for the audio elements
|
91 |
-
gr.HTML("""
|
92 |
-
<style>
|
93 |
-
/* Hide unnecessary controls in the audio player */
|
94 |
-
audio::-webkit-media-controls-enclosure {
|
95 |
-
overflow: hidden;
|
96 |
-
}
|
97 |
-
/* Hide specific controls in WebKit browsers (Chrome, Safari) */
|
98 |
-
audio::-webkit-media-controls-current-time-display,
|
99 |
-
audio::-webkit-media-controls-time-remaining-display,
|
100 |
-
audio::-webkit-media-controls-timeline,
|
101 |
-
audio::-webkit-media-controls-volume-slider-container,
|
102 |
-
audio::-webkit-media-controls-fullscreen-button,
|
103 |
-
audio::-webkit-media-controls-mute-button,
|
104 |
-
audio::-webkit-media-controls-volume-slider,
|
105 |
-
audio::-webkit-media-controls-timeline-container,
|
106 |
-
audio::-webkit-media-controls-seek-back-button,
|
107 |
-
audio::-webkit-media-controls-seek-forward-button,
|
108 |
-
audio::-webkit-media-controls-rewind-button,
|
109 |
-
audio::-webkit-media-controls-return-to-realtime-button,
|
110 |
-
audio::-webkit-media-controls-toggle-closed-captions-button {
|
111 |
-
display: none;
|
112 |
-
}
|
113 |
-
/* Hide specific controls in Mozilla Firefox */
|
114 |
-
audio:not([controls]) {
|
115 |
-
display: none;
|
116 |
-
}
|
117 |
-
audio::-moz-volume-slider,
|
118 |
-
audio::-moz-volume-box {
|
119 |
-
display: none;
|
120 |
-
}
|
121 |
-
/* Set the width of the play button */
|
122 |
-
audio {
|
123 |
-
width: 50px; /* Adjust as needed */
|
124 |
-
height: 30px; /* Adjust as needed */
|
125 |
-
}
|
126 |
-
</style>
|
127 |
-
""")
|
128 |
-
|
129 |
with gr.Row():
|
130 |
with gr.Column(scale=1):
|
131 |
api_key_input = gr.Textbox(
|
|
|
87 |
gr.set_static_paths([PREVIEW_DIR])
|
88 |
|
89 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
with gr.Row():
|
91 |
with gr.Column(scale=1):
|
92 |
api_key_input = gr.Textbox(
|