Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
-
import torch
|
3 |
-
import utils # 确保导入utils模块
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
audio_output = model.synthesize(text)
|
10 |
-
return audio_output
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
inputs="text",
|
15 |
-
outputs="audio"
|
16 |
-
).launch(share=True)
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
# 运行克隆脚本
|
4 |
+
subprocess.run(["python", "clone_repo.py"], check=True)
|
5 |
+
|
6 |
+
# 继续执行你的应用逻辑
|
7 |
+
# 例如,如果你使用的是 Gradio,可以在这里添加 Gradio 代码
|
8 |
import gradio as gr
|
|
|
|
|
9 |
|
10 |
+
def greet(name):
|
11 |
+
return "Hello " + name + "!"
|
12 |
+
|
13 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
|
14 |
|
15 |
+
if __name__ == "__main__":
|
16 |
+
demo.launch()
|
|
|
|
|
|