Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 = [['
|
| 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"),
|