Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,6 +74,7 @@ with gr.Blocks() as interface:
|
|
| 74 |
#process-button { width: 100%; margin-top: 10px; background-color: #6a4cfc; color: white; border: none; border-radius: 5px; }
|
| 75 |
#mp3-download, #iphone-ringtone { width: 45%; }
|
| 76 |
#instructions { width: 100%; margin-top: 20px; }
|
|
|
|
| 77 |
</style>
|
| 78 |
""")
|
| 79 |
|
|
@@ -84,10 +85,10 @@ with gr.Blocks() as interface:
|
|
| 84 |
gr.HTML("<h3 style='text-align: center;'>Trim Audio</h3>")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
-
start_time = gr.Slider(0, 20, value=0, label="Start Time (seconds)",
|
| 88 |
-
end_time = gr.Slider(1, 20, value=20, label="End Time (seconds)",
|
| 89 |
|
| 90 |
-
|
| 91 |
process_button = gr.Button("Create Ringtones", elem_id="process-button")
|
| 92 |
|
| 93 |
with gr.Row():
|
|
@@ -107,5 +108,3 @@ with gr.Blocks() as interface:
|
|
| 107 |
interface.launch(share=True)
|
| 108 |
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
|
|
|
| 74 |
#process-button { width: 100%; margin-top: 10px; background-color: #6a4cfc; color: white; border: none; border-radius: 5px; }
|
| 75 |
#mp3-download, #iphone-ringtone { width: 45%; }
|
| 76 |
#instructions { width: 100%; margin-top: 20px; }
|
| 77 |
+
#start-time-slider, #end-time-slider { width: 45%; }
|
| 78 |
</style>
|
| 79 |
""")
|
| 80 |
|
|
|
|
| 85 |
gr.HTML("<h3 style='text-align: center;'>Trim Audio</h3>")
|
| 86 |
|
| 87 |
with gr.Row():
|
| 88 |
+
start_time = gr.Slider(0, 20, value=0, label="Start Time (seconds)", elem_id="start-time-slider")
|
| 89 |
+
end_time = gr.Slider(1, 20, value=20, label="End Time (seconds)", elem_id="end-time-slider")
|
| 90 |
|
| 91 |
+
# Add a class for custom button color
|
| 92 |
process_button = gr.Button("Create Ringtones", elem_id="process-button")
|
| 93 |
|
| 94 |
with gr.Row():
|
|
|
|
| 108 |
interface.launch(share=True)
|
| 109 |
|
| 110 |
|
|
|
|
|
|