Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files- .idea/workspace.xml +1 -0
- app.py +2 -1
- outputs/output_chinese.wav +2 -2
- outputs/tmp.wav +2 -2
.idea/workspace.xml
CHANGED
|
@@ -24,6 +24,7 @@
|
|
| 24 |
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
| 25 |
<change beforePath="$PROJECT_DIR$/demo_part1.ipynb" beforeDir="false" afterPath="$PROJECT_DIR$/demo_part1.ipynb" afterDir="false" />
|
| 26 |
<change beforePath="$PROJECT_DIR$/demo_part3.ipynb" beforeDir="false" afterPath="$PROJECT_DIR$/demo_part3.ipynb" afterDir="false" />
|
|
|
|
| 27 |
</list>
|
| 28 |
<option name="SHOW_DIALOG" value="false" />
|
| 29 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
|
| 24 |
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
| 25 |
<change beforePath="$PROJECT_DIR$/demo_part1.ipynb" beforeDir="false" afterPath="$PROJECT_DIR$/demo_part1.ipynb" afterDir="false" />
|
| 26 |
<change beforePath="$PROJECT_DIR$/demo_part3.ipynb" beforeDir="false" afterPath="$PROJECT_DIR$/demo_part3.ipynb" afterDir="false" />
|
| 27 |
+
<change beforePath="$PROJECT_DIR$/requirements.txt" beforeDir="false" afterPath="$PROJECT_DIR$/requirements.txt" afterDir="false" />
|
| 28 |
</list>
|
| 29 |
<option name="SHOW_DIALOG" value="false" />
|
| 30 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
app.py
CHANGED
|
@@ -11,6 +11,7 @@ def initialize_and_run(input_text: str, save_path: str):
|
|
| 11 |
ckpt_base = 'checkpoints/base_speakers/ZH'
|
| 12 |
ckpt_converter = 'checkpoints/converter'
|
| 13 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 14 |
output_dir = 'outputs'
|
| 15 |
|
| 16 |
base_speaker_tts = BaseSpeakerTTS(f'{ckpt_base}/config.json', device=device)
|
|
@@ -56,4 +57,4 @@ demo = gr.Interface(
|
|
| 56 |
)
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
| 59 |
-
demo.launch()
|
|
|
|
| 11 |
ckpt_base = 'checkpoints/base_speakers/ZH'
|
| 12 |
ckpt_converter = 'checkpoints/converter'
|
| 13 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 14 |
+
print(device)
|
| 15 |
output_dir = 'outputs'
|
| 16 |
|
| 17 |
base_speaker_tts = BaseSpeakerTTS(f'{ckpt_base}/config.json', device=device)
|
|
|
|
| 57 |
)
|
| 58 |
|
| 59 |
if __name__ == "__main__":
|
| 60 |
+
demo.launch(share=True)
|
outputs/output_chinese.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd9f833cdc1ca6f9343d0c1a193857fbd35c1fdbcf25d7934154b5b68d2af625
|
| 3 |
+
size 109100
|
outputs/tmp.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2ab6493771e1dccfff2d0fe4af50a13309121af04c951dcc13f933578f82b22
|
| 3 |
+
size 109256
|