Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
|
| 178 |
# Gradio 인터페이스 생성
|
| 179 |
deepfake = gr.Interface(
|
| 180 |
-
fn=
|
| 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",
|