FarhadMadadzade
commited on
Commit
•
e5f8741
1
Parent(s):
de84263
fixed date input
Browse files
app.py
CHANGED
@@ -10,9 +10,6 @@ pipe = pipeline("automatic-speech-recognition", model="Artanis1551/whisper_roman
|
|
10 |
|
11 |
|
12 |
def process_video(date):
|
13 |
-
# Parse the date to the format yyyymmdd
|
14 |
-
date = datetime.datetime.strptime(date, "%Y-%m-%d").strftime("%Y%m%d")
|
15 |
-
|
16 |
# Download the video
|
17 |
video_path = download_video(date)
|
18 |
|
@@ -33,7 +30,7 @@ def process_video(date):
|
|
33 |
|
34 |
iface = gr.Interface(
|
35 |
fn=process_video,
|
36 |
-
inputs="
|
37 |
outputs=["video", "text"],
|
38 |
title="Romanian Transcription Test",
|
39 |
)
|
|
|
10 |
|
11 |
|
12 |
def process_video(date):
|
|
|
|
|
|
|
13 |
# Download the video
|
14 |
video_path = download_video(date)
|
15 |
|
|
|
30 |
|
31 |
iface = gr.Interface(
|
32 |
fn=process_video,
|
33 |
+
inputs=gr.inputs.Textbox(label="Date with format YYYYMMDD"),
|
34 |
outputs=["video", "text"],
|
35 |
title="Romanian Transcription Test",
|
36 |
)
|