| import gradio as gr | |
| import os | |
| from infer.modules.vc.modules import VC | |
| def load_model_and_convert(audio_file): | |
| # আপনার RVC কোড এখানে | |
| return "converted_audio.wav" | |
| iface = gr.Interface( | |
| fn=load_model_and_convert, | |
| inputs=gr.Audio(type="filepath"), | |
| outputs=gr.Audio() | |
| ) | |
| iface.launch() | |