Spaces:
Running
on
Zero
Running
on
Zero
fix requirments
Browse files- app.py +2 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -69,7 +69,8 @@ demo = gr.Interface(
|
|
69 |
label="选择模型", value="CosyVoice2-base"
|
70 |
),
|
71 |
gr.Textbox(lines=2, label="输入文本"),
|
72 |
-
gr.Audio(source="upload", type="filepath", label="上传参考音频(仅 CosyVoice2-base 必需)")
|
|
|
73 |
],
|
74 |
outputs=[
|
75 |
gr.Audio(type="numpy", label="生成的语音"),
|
|
|
69 |
label="选择模型", value="CosyVoice2-base"
|
70 |
),
|
71 |
gr.Textbox(lines=2, label="输入文本"),
|
72 |
+
# gr.Audio(source="upload", type="filepath", label="上传参考音频(仅 CosyVoice2-base 必需)")
|
73 |
+
gr.Audio(sources=["upload"], type="filepath", label="上传参考音频(仅 CosyVoice2-base 必需)")
|
74 |
],
|
75 |
outputs=[
|
76 |
gr.Audio(type="numpy", label="生成的语音"),
|
requirements.txt
CHANGED
@@ -6,7 +6,7 @@ diffusers==0.29.0
|
|
6 |
fastapi==0.115.6
|
7 |
fastapi-cli==0.0.4
|
8 |
gdown==5.1.0
|
9 |
-
gradio==
|
10 |
grpcio==1.57.0
|
11 |
grpcio-tools==1.57.0
|
12 |
hydra-core==1.3.2
|
|
|
6 |
fastapi==0.115.6
|
7 |
fastapi-cli==0.0.4
|
8 |
gdown==5.1.0
|
9 |
+
gradio==5.4.0
|
10 |
grpcio==1.57.0
|
11 |
grpcio-tools==1.57.0
|
12 |
hydra-core==1.3.2
|