Kryptone commited on
Commit
0a26beb
·
1 Parent(s): f088aee

make the layout a bit more prettier

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -81,11 +81,10 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Global Dataset Maker") as app:
81
  with gr.Tabs():
82
  with gr.TabItem("Download Video"):
83
  with gr.Row():
84
- gr.Markdown(
85
- "Enter a YT link here, and it will save as a WAV."
86
- )
87
- url = gr.Textbox(label="URL")
88
- convertion = gr.Button("Download", variant='primary')
89
  convertion.click(
90
  fn=download_video,
91
  inputs=[url],
@@ -93,14 +92,13 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Global Dataset Maker") as app:
93
  )
94
  with gr.TabItem("Split audio files"):
95
  with gr.Row():
96
- gr.Markdown(
97
- "Split the WAV file based on silence. You can also set a name for the split files here too."
98
- )
99
- mindur = gr.Number(label="Min duration", minimum=1, maximum=10, value=1)
100
- maxdur = gr.Number(label="Max duration", minimum=1, maximum=10, value=8)
101
- name_for_split_files = gr.Textbox(label="Name for split files")
102
- show_amount_of_files_and_file_dur = gr.Checkbox(False, label="Show total amount of files and duration?")
103
- splitbtn = gr.Button("Split", variant='primary')
104
  splitbtn.click(
105
  split_audio,
106
  inputs=[mindur, maxdur, name_for_split_files, show_amount_of_files_and_file_dur],
 
81
  with gr.Tabs():
82
  with gr.TabItem("Download Video"):
83
  with gr.Row():
84
+ with gr.Column():
85
+ with gr.Row():
86
+ url = gr.Textbox(label="URL")
87
+ convertion = gr.Button("Download", variant='primary')
 
88
  convertion.click(
89
  fn=download_video,
90
  inputs=[url],
 
92
  )
93
  with gr.TabItem("Split audio files"):
94
  with gr.Row():
95
+ with gr.Column():
96
+ with gr.Row():
97
+ mindur = gr.Number(label="Min duration", minimum=1, maximum=10, value=1)
98
+ maxdur = gr.Number(label="Max duration", minimum=1, maximum=10, value=8)
99
+ name_for_split_files = gr.Textbox(label="Name for split files")
100
+ show_amount_of_files_and_file_dur = gr.Checkbox(False, label="Show total amount of files and duration?")
101
+ splitbtn = gr.Button("Split", variant='primary')
 
102
  splitbtn.click(
103
  split_audio,
104
  inputs=[mindur, maxdur, name_for_split_files, show_amount_of_files_and_file_dur],