sssssungk commited on
Commit
cd01dff
·
verified ·
1 Parent(s): a36f03e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -171,13 +171,13 @@ def main(file_name):
171
  rf_check = real_fake_check(fake, fake_path,model) #fake dataset\
172
  return rf_check
173
 
174
- # def deepvoice_check(video_file):
175
- # results = main(video_file)
176
- # return results
177
 
178
  # Gradio 인터페이스 생성
179
  deepfake = gr.Interface(
180
- fn=main,
181
  inputs=gr.Video(label="Upload mp4 File"),
182
  outputs=gr.Textbox(label="DeepFaKeVoice Detection Result"),
183
  title="DeepFaKeVoice Check",
 
171
  rf_check = real_fake_check(fake, fake_path,model) #fake dataset\
172
  return rf_check
173
 
174
+ def deepvoice_check(video_file):
175
+ results = main(video_file)
176
+ return results
177
 
178
  # Gradio 인터페이스 생성
179
  deepfake = gr.Interface(
180
+ fn=deepvoice_check,
181
  inputs=gr.Video(label="Upload mp4 File"),
182
  outputs=gr.Textbox(label="DeepFaKeVoice Detection Result"),
183
  title="DeepFaKeVoice Check",