File size: 431 Bytes
529d20c
47afa67
529d20c
 
1504b46
47afa67
 
 
 
 
529d20c
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()