Spaces:
Sleeping
Sleeping
| 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() | |