RJ40under40 commited on
Commit
cfff8f1
·
verified ·
1 Parent(s): e866b4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -15,6 +15,18 @@ from pydub import AudioSegment
15
  # CONFIGURATION
16
  # ======================================================
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  MODEL_ID = "Hemgg/Deepfake-audio-detection"
19
  HF_TOKEN = os.getenv("HF_TOKEN", None)
20
 
 
15
  # CONFIGURATION
16
  # ======================================================
17
 
18
+ import subprocess
19
+ import shutil
20
+
21
+ print("FFMPEG PATH:", shutil.which("ffmpeg"))
22
+ print("FFPROBE PATH:", shutil.which("ffprobe"))
23
+
24
+ try:
25
+ print(subprocess.run(["ffmpeg", "-version"], capture_output=True).stdout[:100])
26
+ except Exception as e:
27
+ print("FFMPEG ERROR:", e)
28
+
29
+
30
  MODEL_ID = "Hemgg/Deepfake-audio-detection"
31
  HF_TOKEN = os.getenv("HF_TOKEN", None)
32