Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,8 +40,10 @@ def predict(input_text):
|
|
| 40 |
|
| 41 |
p = re.compile(r'(?<=[\.\?!]\s)(\w+)')
|
| 42 |
pcnt_file_cr_cap = p.sub(cap, pcnt_file_cr)
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
return
|
| 45 |
|
| 46 |
if __name__ == "__main__":
|
| 47 |
|
|
|
|
| 40 |
|
| 41 |
p = re.compile(r'(?<=[\.\?!]\s)(\w+)')
|
| 42 |
pcnt_file_cr_cap = p.sub(cap, pcnt_file_cr)
|
| 43 |
+
|
| 44 |
+
pcnt_file_cr_capi = pcnt_file_cr_cap.replace(' i ',' I ')
|
| 45 |
|
| 46 |
+
return pcnt_file_cr_capi
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
| 49 |
|