wldmr commited on
Commit
ce2a6bf
·
1 Parent(s): b890761

textlines instead of lines

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 'lines' 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,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", "lines"], default="Bob", label="line brakes"),
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,