import gradio as gr | |
import subprocess | |
def greet(name): | |
subprocess.run(["mkdir", "-p", "./trained/wdlm/"]) | |
# 切换到目录 ./trained/wdlm/ | |
os.chdir("./trained/wdlm/") | |
subprocess.run(["wget", "-O", "G_38400.pth", "https://github.com/00000000002/render/releases/download/ddd/G_38400.pth"]) | |
return "Hello " + name + "!!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch() |