Spaces:
V3N0M
/
Runtime error

r3gm commited on
Commit
ad2f867
1 Parent(s): e0aa8ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -23
app.py CHANGED
@@ -32,13 +32,11 @@ os.chdir(current_path)
32
 
33
  start_time = time.time()
34
 
35
- !nvidia-smi
36
-
37
  # Clone the repository using the complete phrase as the folder name
38
  maville = "R"
39
  acat = "VC"
40
  juxxn = maville + acat
41
- !git clone https://github.com/IAHispano/Applio-Utilities ./Applio-$juxxn-Fork/utils
42
 
43
  end_time = time.time()
44
  elapsed_time = end_time - start_time
@@ -78,7 +76,7 @@ start_time_setup = time.time()
78
  setup_environment(ForceUpdateDependencies, ForceTemporaryStorage)
79
 
80
  # Apparently fastapi is getting errors as of writing according to #help-rvc
81
- !pip install fastapi==0.88.0
82
 
83
  end_time_setup = time.time()
84
  elapsed_time_setup = end_time_setup - start_time_setup
@@ -98,7 +96,7 @@ base_url = f"https://huggingface.co/lj1995/VoiceConversionWebU{part2}"
98
  complete_url = base_url + "/resolve/main/rmvpe.pt"
99
 
100
  # Download the file using the complete URL
101
- !wget {complete_url} -P {complete_phrase}
102
 
103
  end_time_clone = time.time()
104
  elapsed_time_clone = end_time_clone - start_time_clone
@@ -110,19 +108,18 @@ print("Cell completed.")
110
  total_time = elapsed_time + elapsed_time_setup + elapsed_time_clone
111
  print(f"Total time taken: {total_time} seconds")
112
 
113
- !pip install -q stftpitchshift==1.5.1
114
- !pip install gradio==3.34.0
115
- !pip install yt-dlp
116
- !pip install pedalboard
117
- !pip install pathvalidate
118
- !pip install nltk
119
- !pip install edge-tts
120
- !pip install git+https://github.com/suno-ai/bark.git
121
- !pip install wget -q
122
- !pip install unidecode -q
123
- !pip install gtts
124
- !pip install pip install tensorboardX
125
- namepython = "infer-web.py"
126
 
127
 
128
 
@@ -227,14 +224,14 @@ except FileNotFoundError:
227
 
228
 
229
  def tempus_killed_server():
230
- %cd ./Retrieval-based-{complete_phrase}
231
- %load_ext tensorboard
232
  clear_output()
233
- %tensorboard --logdir ./Applio-$juxxn-Fork/logs
234
- !mkdir -p ./Applio-$juxxn-Fork/audios
235
  print("Try")
236
  arguments = "--colab --pycmd python3"
237
- !python3 $namepython $arguments
238
 
239
 
240
  if LoadBackupDrive:
 
32
 
33
  start_time = time.time()
34
 
 
 
35
  # Clone the repository using the complete phrase as the folder name
36
  maville = "R"
37
  acat = "VC"
38
  juxxn = maville + acat
39
+ os.system('git clone https://github.com/IAHispano/Applio-Utilities ./Applio-$juxxn-Fork/utils')
40
 
41
  end_time = time.time()
42
  elapsed_time = end_time - start_time
 
76
  setup_environment(ForceUpdateDependencies, ForceTemporaryStorage)
77
 
78
  # Apparently fastapi is getting errors as of writing according to #help-rvc
79
+ os.system('pip install fastapi==0.88.0')
80
 
81
  end_time_setup = time.time()
82
  elapsed_time_setup = end_time_setup - start_time_setup
 
96
  complete_url = base_url + "/resolve/main/rmvpe.pt"
97
 
98
  # Download the file using the complete URL
99
+ os.system('wget {complete_url} -P {complete_phrase}')
100
 
101
  end_time_clone = time.time()
102
  elapsed_time_clone = end_time_clone - start_time_clone
 
108
  total_time = elapsed_time + elapsed_time_setup + elapsed_time_clone
109
  print(f"Total time taken: {total_time} seconds")
110
 
111
+ os.system("pip install -q stftpitchshift==1.5.1")
112
+ os.system("pip install gradio==3.34.0")
113
+ os.system("pip install yt-dlp")
114
+ os.system("pip install pedalboard")
115
+ os.system("pip install pathvalidate")
116
+ os.system("pip install nltk")
117
+ os.system("pip install edge-tts")
118
+ os.system("pip install git+https://github.com/suno-ai/bark.git")
119
+ os.system("pip install wget -q")
120
+ os.system("pip install unidecode -q")
121
+ os.system("pip install gtts")
122
+ os.system("pip install tensorboardX")
 
123
 
124
 
125
 
 
224
 
225
 
226
  def tempus_killed_server():
227
+ os.system("cd ./Retrieval-based-{complete_phrase}")
228
+ os.system("load_ext tensorboard")
229
  clear_output()
230
+ os.system("tensorboard --logdir ./Applio-$juxxn-Fork/logs")
231
+ os.system("mkdir -p ./Applio-$juxxn-Fork/audios")
232
  print("Try")
233
  arguments = "--colab --pycmd python3"
234
+ os.system("python3 $namepython $arguments")
235
 
236
 
237
  if LoadBackupDrive: