Update app.py
Browse files
app.py
CHANGED
|
@@ -43,5 +43,15 @@ with gr.Blocks() as demo:
|
|
| 43 |
#preprocess_btn.click(preprocess_data, inputs=[model_name, dataset_folder], outputs=preprocess_output)
|
| 44 |
#f0_btn.click(extract_f0_feature, inputs=[model_name, f0method], outputs=f0_output)
|
| 45 |
#train_btn.click(train_index, inputs=[model_name, "v2"], outputs=train_output)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
demo.launch()
|
|
|
|
| 43 |
#preprocess_btn.click(preprocess_data, inputs=[model_name, dataset_folder], outputs=preprocess_output)
|
| 44 |
#f0_btn.click(extract_f0_feature, inputs=[model_name, f0method], outputs=f0_output)
|
| 45 |
#train_btn.click(train_index, inputs=[model_name, "v2"], outputs=train_output)
|
| 46 |
+
with gr.TabItem("Train Your Model"):
|
| 47 |
+
model_name_input = gr.Textbox(label="Model Name", placeholder="Enter the model name", interactive=True)
|
| 48 |
+
epochs_slider = gr.Slider(minimum=50, maximum=2000, value=200, step=10, label="Epochs")
|
| 49 |
+
save_frequency_slider = gr.Slider(minimum=10, maximum=100, value=50, step=10, label="Save Frequency")
|
| 50 |
+
batch_size_slider = gr.Slider(minimum=1, maximum=20, value=8, step=1, label="Batch Size")
|
| 51 |
+
|
| 52 |
+
train_button = gr.Button("Train Model")
|
| 53 |
+
training_output = gr.Textbox(label="Training Log", interactive=False)
|
| 54 |
+
|
| 55 |
+
#train_button.click(launch_training, inputs=[model_name_input, epochs_slider, save_frequency_slider, batch_size_slider], outputs=training_output)
|
| 56 |
|
| 57 |
demo.launch()
|