FarhadMadadzade
commited on
Commit
•
43ca182
1
Parent(s):
a3848eb
added to correct place
Browse files- app.py +1 -0
- video_downloader.py +0 -2
app.py
CHANGED
@@ -12,6 +12,7 @@ pipe = pipeline("automatic-speech-recognition", model="Artanis1551/whisper_roman
|
|
12 |
|
13 |
def process_video(date):
|
14 |
# If the date is not in YYYY-MM-DD format, return an error message
|
|
|
15 |
date_pattern = re.compile(r"\b\d{4}\d{2}\d{2}\b")
|
16 |
if not date_pattern.match(date):
|
17 |
video_path = download_youtube_video(
|
|
|
12 |
|
13 |
def process_video(date):
|
14 |
# If the date is not in YYYY-MM-DD format, return an error message
|
15 |
+
date = date.strip()
|
16 |
date_pattern = re.compile(r"\b\d{4}\d{2}\d{2}\b")
|
17 |
if not date_pattern.match(date):
|
18 |
video_path = download_youtube_video(
|
video_downloader.py
CHANGED
@@ -9,8 +9,6 @@ def download_video(date):
|
|
9 |
for mp4_file in glob.glob("*.mp4"):
|
10 |
os.remove(mp4_file)
|
11 |
|
12 |
-
date = date.strip()
|
13 |
-
|
14 |
year = date[:4]
|
15 |
url = f"https://www.cdep.ro/u02/comisii/{year}/cp46_{date}.mp4"
|
16 |
try:
|
|
|
9 |
for mp4_file in glob.glob("*.mp4"):
|
10 |
os.remove(mp4_file)
|
11 |
|
|
|
|
|
12 |
year = date[:4]
|
13 |
url = f"https://www.cdep.ro/u02/comisii/{year}/cp46_{date}.mp4"
|
14 |
try:
|