Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix(app): cover should not be required to run
Browse files- app-full.py +4 -1
- app.py +5 -2
app-full.py
CHANGED
@@ -159,7 +159,10 @@ if __name__ == '__main__':
|
|
159 |
index_path = glob.glob(f"{folder_path}/{name}/*.index")
|
160 |
checkpoint_path = glob.glob(f"{folder_path}/{name}/*.pth")
|
161 |
title = name
|
162 |
-
|
|
|
|
|
|
|
163 |
index = index_path[0]
|
164 |
cpt = torch.load(checkpoint_path[0], map_location="cpu")
|
165 |
tgt_sr = cpt["config"][-1]
|
|
|
159 |
index_path = glob.glob(f"{folder_path}/{name}/*.index")
|
160 |
checkpoint_path = glob.glob(f"{folder_path}/{name}/*.pth")
|
161 |
title = name
|
162 |
+
if cover_path:
|
163 |
+
cover = cover_path[0]
|
164 |
+
else:
|
165 |
+
cover = ""
|
166 |
index = index_path[0]
|
167 |
cpt = torch.load(checkpoint_path[0], map_location="cpu")
|
168 |
tgt_sr = cpt["config"][-1]
|
app.py
CHANGED
@@ -110,7 +110,10 @@ if __name__ == '__main__':
|
|
110 |
index_path = glob.glob(f"{folder_path}/{name}/*.index")
|
111 |
checkpoint_path = glob.glob(f"{folder_path}/{name}/*.pth")
|
112 |
title = name
|
113 |
-
|
|
|
|
|
|
|
114 |
index = index_path[0]
|
115 |
cpt = torch.load(checkpoint_path[0], map_location="cpu")
|
116 |
tgt_sr = cpt["config"][-1]
|
@@ -133,7 +136,7 @@ if __name__ == '__main__':
|
|
133 |
gr.Markdown(
|
134 |
"# <center> RVC Models (Latest Update)\n"
|
135 |
"## <center> The input audio should be clean and pure voice without background music.\n"
|
136 |
-
"### <center>
|
137 |
"[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/110kiMZTdP6Ri1lY9-NbQf17GVPPhHyeT?usp=sharing)\n\n"
|
138 |
"[![Original Repo](https://badgen.net/badge/icon/github?icon=github&label=Original%20Repo)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)"
|
139 |
)
|
|
|
110 |
index_path = glob.glob(f"{folder_path}/{name}/*.index")
|
111 |
checkpoint_path = glob.glob(f"{folder_path}/{name}/*.pth")
|
112 |
title = name
|
113 |
+
if cover_path:
|
114 |
+
cover = cover_path[0]
|
115 |
+
else:
|
116 |
+
cover = ""
|
117 |
index = index_path[0]
|
118 |
cpt = torch.load(checkpoint_path[0], map_location="cpu")
|
119 |
tgt_sr = cpt["config"][-1]
|
|
|
136 |
gr.Markdown(
|
137 |
"# <center> RVC Models (Latest Update)\n"
|
138 |
"## <center> The input audio should be clean and pure voice without background music.\n"
|
139 |
+
"### <center> Recommended to use google colab for more features. \n"
|
140 |
"[![image](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/110kiMZTdP6Ri1lY9-NbQf17GVPPhHyeT?usp=sharing)\n\n"
|
141 |
"[![Original Repo](https://badgen.net/badge/icon/github?icon=github&label=Original%20Repo)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)"
|
142 |
)
|