sudo-soldier commited on
Commit
182b08d
·
verified ·
1 Parent(s): 7ce4a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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)", style={"width": "45%"})
88
- end_time = gr.Slider(1, 20, value=20, label="End Time (seconds)", style={"width": "45%"})
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