Spaces:
Runtime error
Runtime error
David Li commited on
Commit ·
1de6508
1
Parent(s): 6ca81bc
fix: issues
Browse files
app.py
CHANGED
|
@@ -10,6 +10,8 @@ def get_video_id(url):
|
|
| 10 |
|
| 11 |
video_id = re.findall(r"v=([-\w]{11})", url)[0]
|
| 12 |
old_stdin = sys.stdin
|
|
|
|
|
|
|
| 13 |
if not sys.stdin.isatty():
|
| 14 |
y_strings = "\n".join(["y", "y", "y", "y", "y"])
|
| 15 |
sys.stdin = StringIO(y_strings)
|
|
|
|
| 10 |
|
| 11 |
video_id = re.findall(r"v=([-\w]{11})", url)[0]
|
| 12 |
old_stdin = sys.stdin
|
| 13 |
+
# mkdir /home/user/.cache/whisper
|
| 14 |
+
os.makedirs(f"/home/user/.cache/whisper", exist_ok=True)
|
| 15 |
if not sys.stdin.isatty():
|
| 16 |
y_strings = "\n".join(["y", "y", "y", "y", "y"])
|
| 17 |
sys.stdin = StringIO(y_strings)
|