Spaces:
Runtime error
Runtime error
Commit
·
279175c
1
Parent(s):
23abed0
minor fix
Browse files- app.py +1 -4
- transcribe.py +1 -1
app.py
CHANGED
@@ -16,13 +16,10 @@ def prepare_input(input_file, progress=gr.Progress()):
|
|
16 |
return start_transcribe(progress)
|
17 |
|
18 |
|
19 |
-
output_files = gr.outputs.File(
|
20 |
-
label="Transcribe"), gr.outputs.File(label="Subtitle")
|
21 |
-
|
22 |
video_interface = gr.Interface(
|
23 |
fn=prepare_input,
|
24 |
inputs=gr.Video(type="file"),
|
25 |
-
outputs=
|
26 |
title="Test 2"
|
27 |
)
|
28 |
|
|
|
16 |
return start_transcribe(progress)
|
17 |
|
18 |
|
|
|
|
|
|
|
19 |
video_interface = gr.Interface(
|
20 |
fn=prepare_input,
|
21 |
inputs=gr.Video(type="file"),
|
22 |
+
outputs="files",
|
23 |
title="Test 2"
|
24 |
)
|
25 |
|
transcribe.py
CHANGED
@@ -44,7 +44,7 @@ def start_transcribe(progress):
|
|
44 |
with open("transcribe.txt", "a") as file:
|
45 |
file.write(f"[{name}] {text}\n")
|
46 |
|
47 |
-
return
|
48 |
|
49 |
|
50 |
def timeStr(t):
|
|
|
44 |
with open("transcribe.txt", "a") as file:
|
45 |
file.write(f"[{name}] {text}\n")
|
46 |
|
47 |
+
return ["transcribe.txt", "subtitle.srt"]
|
48 |
|
49 |
|
50 |
def timeStr(t):
|