Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,7 +66,7 @@ def seprate_speaker(audio_file, pipeline):
|
|
| 66 |
# ํ์์ ๋ชจ๋ ๋ฐํ ๊ตฌ๊ฐ์ ์ด์ด๋ถ์
|
| 67 |
combined_waveform = torch.cat(segments, dim=1)
|
| 68 |
#current_path = os.getcwd()
|
| 69 |
-
output_path = "/
|
| 70 |
os.makedirs(output_path, exist_ok=True) # ๊ฒฝ๋ก๊ฐ ์์ผ๋ฉด ์์ฑ
|
| 71 |
output_filename = os.path.join(output_path,f"{speaker}.wav")
|
| 72 |
|
|
@@ -140,7 +140,7 @@ def main(file_name):
|
|
| 140 |
|
| 141 |
video_file = file_name #deepfake #meganfox.mp4'
|
| 142 |
#current_path = os.getcwd()
|
| 143 |
-
audio_file = '/
|
| 144 |
|
| 145 |
extract_audio_from_video(video_file, audio_file)
|
| 146 |
|
|
@@ -166,7 +166,7 @@ def main(file_name):
|
|
| 166 |
|
| 167 |
#real = os.listdir(real_path)
|
| 168 |
#current_path = os.getcwd()
|
| 169 |
-
fake_path = '/
|
| 170 |
fake = os.listdir(fake_path)
|
| 171 |
|
| 172 |
rf_check = real_fake_check(fake, fake_path,model) #fake dataset\
|
|
|
|
| 66 |
# ํ์์ ๋ชจ๋ ๋ฐํ ๊ตฌ๊ฐ์ ์ด์ด๋ถ์
|
| 67 |
combined_waveform = torch.cat(segments, dim=1)
|
| 68 |
#current_path = os.getcwd()
|
| 69 |
+
output_path = "/tmp/wav" # ๊ฒฝ๋ก
|
| 70 |
os.makedirs(output_path, exist_ok=True) # ๊ฒฝ๋ก๊ฐ ์์ผ๋ฉด ์์ฑ
|
| 71 |
output_filename = os.path.join(output_path,f"{speaker}.wav")
|
| 72 |
|
|
|
|
| 140 |
|
| 141 |
video_file = file_name #deepfake #meganfox.mp4'
|
| 142 |
#current_path = os.getcwd()
|
| 143 |
+
audio_file = '/tmp/output_audio.wav' # ์ ์ฅํ ์ค๋์ค ํ์ผ์ ๊ฒฝ๋ก, ์ด๋ฆ ์ง์
|
| 144 |
|
| 145 |
extract_audio_from_video(video_file, audio_file)
|
| 146 |
|
|
|
|
| 166 |
|
| 167 |
#real = os.listdir(real_path)
|
| 168 |
#current_path = os.getcwd()
|
| 169 |
+
fake_path = '/tmp/wav'
|
| 170 |
fake = os.listdir(fake_path)
|
| 171 |
|
| 172 |
rf_check = real_fake_check(fake, fake_path,model) #fake dataset\
|