wldmr commited on
Commit
349d7f3
·
1 Parent(s): 9d7acb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def predict(brakes, input_text):
42
 
43
  elif 'sentences' in brakes:
44
  split_text = output_text.split('. ')
45
- pcnt_file_cr = '\n '.join(split_text)
46
 
47
  regex1 = r"\bi\b"
48
  regex2 = r"(?<=[.?!;])\s*\w"
@@ -58,7 +58,7 @@ if __name__ == "__main__":
58
  <b>Description</b>: <br>
59
  Model restores punctuation and case i.e. of the following punctuations -- [! ? . , - : ; ' ] and also the upper-casing of words. <br>
60
  """
61
- examples = [['timelines', "my name is clara i live in berkeley california"]]
62
 
63
  interface = gr.Interface(fn = predict,
64
  inputs = [gr.Radio(["sentences", "timelines"], label="brakes"),
 
42
 
43
  elif 'sentences' in brakes:
44
  split_text = output_text.split('. ')
45
+ pcnt_file_cr = '.\n'.join(split_text)
46
 
47
  regex1 = r"\bi\b"
48
  regex2 = r"(?<=[.?!;])\s*\w"
 
58
  <b>Description</b>: <br>
59
  Model restores punctuation and case i.e. of the following punctuations -- [! ? . , - : ; ' ] and also the upper-casing of words. <br>
60
  """
61
+ examples = [['sentences', "my name is clara i live in berkeley california"]]
62
 
63
  interface = gr.Interface(fn = predict,
64
  inputs = [gr.Radio(["sentences", "timelines"], label="brakes"),