Spaces:
Runtime error
Runtime error
textlines instead of lines
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def predict(brakes, transcript):
|
|
31 |
# return the text as a single line
|
32 |
pcnt_file_cr = output_text
|
33 |
|
34 |
-
if '
|
35 |
# restore the carrige returns
|
36 |
srt_file_strip=srt_file.strip()
|
37 |
srt_file_sub=re.sub('\s*\n\s*','# ',srt_file_strip)
|
@@ -73,7 +73,7 @@ Model restores punctuation and case i.e. of the following punctuations -- [! ? .
|
|
73 |
examples = [['sentences', "my name is clara i live in berkeley california"]]
|
74 |
|
75 |
interface = gr.Interface(fn = predict,
|
76 |
-
inputs = [gr.Radio(["no breaks","sentences", "
|
77 |
"text"],
|
78 |
outputs = ["text"],
|
79 |
title = title,
|
|
|
31 |
# return the text as a single line
|
32 |
pcnt_file_cr = output_text
|
33 |
|
34 |
+
if 'textlines' in brakes:
|
35 |
# restore the carrige returns
|
36 |
srt_file_strip=srt_file.strip()
|
37 |
srt_file_sub=re.sub('\s*\n\s*','# ',srt_file_strip)
|
|
|
73 |
examples = [['sentences', "my name is clara i live in berkeley california"]]
|
74 |
|
75 |
interface = gr.Interface(fn = predict,
|
76 |
+
inputs = [gr.Radio(["no breaks","sentences", "textlines"], default="no breaks", label="line brakes"),
|
77 |
"text"],
|
78 |
outputs = ["text"],
|
79 |
title = title,
|