sssssungk commited on
Commit
c911c9e
ยท
verified ยท
1 Parent(s): 2d8df4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = "/content/wav" # ๊ฒฝ๋กœ
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 = '/content/output_audio.wav' # ์ €์žฅํ•  ์˜ค๋””์˜ค ํŒŒ์ผ์˜ ๊ฒฝ๋กœ, ์ด๋ฆ„ ์ง€์ •
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 = '/content/wav'
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\