Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,9 @@ def cap(match):
|
|
| 8 |
|
| 9 |
|
| 10 |
def predict(input_text):
|
| 11 |
-
|
| 12 |
-
#output_text = rpunct.punctuate(input_text)
|
| 13 |
model = PunctuationModel()
|
| 14 |
output_text = model.restore_punctuation(input_text)
|
| 15 |
-
#("Punctuation finished...")
|
| 16 |
|
| 17 |
# restore the carrige returns
|
| 18 |
srt_file = input_text
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
def predict(input_text):
|
| 11 |
+
|
|
|
|
| 12 |
model = PunctuationModel()
|
| 13 |
output_text = model.restore_punctuation(input_text)
|
|
|
|
| 14 |
|
| 15 |
# restore the carrige returns
|
| 16 |
srt_file = input_text
|