Spaces:
Runtime error
Runtime error
Commit ·
c25f68e
1
Parent(s): 76efa80
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,10 +20,14 @@ def deepfakeclassifier(potential_test_video, option):
|
|
| 20 |
weights_dir = "./weights"
|
| 21 |
models_dir = ["Custom_classifier_DeepFakeClassifier_tf_efficientnet_b7_ns"]
|
| 22 |
|
|
|
|
| 23 |
parts = potential_test_video.split("\\")
|
|
|
|
| 24 |
test_videos = [parts[-1]]
|
|
|
|
| 25 |
parts[0] += "\\"
|
| 26 |
test_dir = parts[:-1]
|
|
|
|
| 27 |
test_dir = os.path.join(*test_dir)
|
| 28 |
|
| 29 |
|
|
|
|
| 20 |
weights_dir = "./weights"
|
| 21 |
models_dir = ["Custom_classifier_DeepFakeClassifier_tf_efficientnet_b7_ns"]
|
| 22 |
|
| 23 |
+
print(potential_test_video)
|
| 24 |
parts = potential_test_video.split("\\")
|
| 25 |
+
print(parts)
|
| 26 |
test_videos = [parts[-1]]
|
| 27 |
+
print(test_videos)
|
| 28 |
parts[0] += "\\"
|
| 29 |
test_dir = parts[:-1]
|
| 30 |
+
print(test_dir)
|
| 31 |
test_dir = os.path.join(*test_dir)
|
| 32 |
|
| 33 |
|