Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,14 @@ from openai import OpenAI
|
|
| 11 |
import os
|
| 12 |
import re
|
| 13 |
from math import floor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
ACCESS_TOKEN = os.getenv("HF_TOKEN")
|
|
|
|
| 11 |
import os
|
| 12 |
import re
|
| 13 |
from math import floor
|
| 14 |
+
import subprocess
|
| 15 |
+
|
| 16 |
+
# Command to find the location of ffmpeg.exe
|
| 17 |
+
try:
|
| 18 |
+
ffmpeg_location = subprocess.check_output(["where", "ffmpeg"], shell=True, text=True)
|
| 19 |
+
print(f"Location of ffmpeg.exe: {ffmpeg_location.strip()}")
|
| 20 |
+
except subprocess.CalledProcessError:
|
| 21 |
+
print("ffmpeg.exe not found in the system PATH.")
|
| 22 |
|
| 23 |
|
| 24 |
ACCESS_TOKEN = os.getenv("HF_TOKEN")
|