Spaces:
Sleeping
Sleeping
| 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() | |