Spaces:
Runtime error
Runtime error
Commit ·
cc1f01d
1
Parent(s): 21ffe29
fix for cpu
Browse files- requirements.txt +0 -3
- src/webui.py +1 -0
requirements.txt
CHANGED
|
@@ -14,8 +14,5 @@ pyworld==0.3.4
|
|
| 14 |
Requests==2.31.0
|
| 15 |
scipy==1.11.1
|
| 16 |
soundfile==0.12.1
|
| 17 |
-
--find-links https://download.pytorch.org/whl/cpu
|
| 18 |
-
torch==2.0.1
|
| 19 |
-
torchcrepe==0.0.20
|
| 20 |
tqdm==4.65.0
|
| 21 |
yt_dlp==2023.7.6
|
|
|
|
| 14 |
Requests==2.31.0
|
| 15 |
scipy==1.11.1
|
| 16 |
soundfile==0.12.1
|
|
|
|
|
|
|
|
|
|
| 17 |
tqdm==4.65.0
|
| 18 |
yt_dlp==2023.7.6
|
src/webui.py
CHANGED
|
@@ -148,6 +148,7 @@ def process_file_upload(file):
|
|
| 148 |
|
| 149 |
|
| 150 |
if __name__ == '__main__':
|
|
|
|
| 151 |
parser = ArgumentParser(description='Generate a AI cover song in the song_output/id directory.', add_help=True)
|
| 152 |
parser.add_argument("--share", action="store_true", dest="share_enabled", default=False, help="Enable sharing")
|
| 153 |
parser.add_argument("--listen", action="store_true", default=False, help="Make the WebUI reachable from your local network.")
|
|
|
|
| 148 |
|
| 149 |
|
| 150 |
if __name__ == '__main__':
|
| 151 |
+
os.syste("pip3 install torch torchvision torchaudio torchcrepe --index-url https://download.pytorch.org/whl/cpu")
|
| 152 |
parser = ArgumentParser(description='Generate a AI cover song in the song_output/id directory.', add_help=True)
|
| 153 |
parser.add_argument("--share", action="store_true", dest="share_enabled", default=False, help="Enable sharing")
|
| 154 |
parser.add_argument("--listen", action="store_true", default=False, help="Make the WebUI reachable from your local network.")
|