Spaces:
Sleeping
Sleeping
File size: 387 Bytes
98fb6a2 4346cc1 6ce5498 98fb6a2 6ce5498 98fb6a2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import subprocess
# 运行克隆脚本
subprocess.run(["python", "clone_repo.py"], check=True)
# 继续执行你的应用逻辑
# 例如,如果你使用的是 Gradio,可以在这里添加 Gradio 代码
import gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
if __name__ == "__main__":
demo.launch()
|