File size: 598 Bytes
0383056
b7c5757
8af6a09
12994ee
b7c5757
 
0383056
b38281f
b7c5757
0383056
8ed9050
b7c5757
 
8af6a09
0383056
b7c5757
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr
import subprocess
from autotune_script import autotune

with gr.Blocks() as demo:
    gr.Markdown("## Autotune Audio File")
    
    path_input = gr.Audio(label="Path to Audio File", placeholder="your audio file", type="numpy")
    scale_input = gr.Textbox(label="Scale", placeholder="Enter the scale (e.g., C5)")
    
    output_text = gr.Audio(label="Output", placeholder="Autotune script output will appear here")
    
    run_button = gr.Button("Run Autotune Script")
    run_button.click(fn=autotune, inputs=[path_input, scale_input], outputs=[output_text])

demo.launch()