|
|
import os |
|
|
import gradio as gr |
|
|
import shutil |
|
|
import subprocess |
|
|
|
|
|
def save_file(input_file): |
|
|
|
|
|
os.system('mkdir /home/user/audio') |
|
|
os.system('mkdir /home/user/models') |
|
|
|
|
|
|
|
|
os.system('wget "https://drive.google.com/uc?export=download&confirm=no_antivirus&id=1AEgOTSladfl4Lb41T10AOkd1y5HItPun" -O /home/user/models/config.json') |
|
|
os.system('wget "https://drive.google.com/uc?export=download&confirm=no_antivirus&id=1Ayb01_eu6rxceNTd4ZIQvFIH7LwPRlum" -O /home/user/models/G_9599.pth') |
|
|
os.system('wget "https://drive.google.com/uc?export=download&confirm=no_antivirus&id=1qjmFfwLwWeMpZFIlZvAUm1GFomiw613-" -O /home/user/models/D_9599.pth') |
|
|
|
|
|
|
|
|
iface = gr.Interface( |
|
|
fn=save_file, |
|
|
inputs="file", |
|
|
outputs="text", |
|
|
live=False, |
|
|
) |
|
|
|
|
|
|
|
|
iface.launch() |