make the layout a bit more prettier
Browse files
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.
|
85 |
-
|
86 |
-
|
87 |
-
|
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.
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
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],
|