Spaces:
Runtime error
Runtime error
salmanmapkar
commited on
Commit
·
eea7953
1
Parent(s):
0c92e5a
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,8 @@ def correct_grammar(input_text,num_return_sequences=1):
|
|
49 |
_generated_text+=_sentence+'.'
|
50 |
elif _sentence[:1]!=' ':
|
51 |
_generated_text+=' '+_sentence+'.'
|
|
|
|
|
52 |
else:
|
53 |
_generated_text+=_sentence+'.'
|
54 |
return _generated_text
|
|
|
49 |
_generated_text+=_sentence+'.'
|
50 |
elif _sentence[:1]!=' ':
|
51 |
_generated_text+=' '+_sentence+'.'
|
52 |
+
elif _sentence[:1]=='':
|
53 |
+
pass
|
54 |
else:
|
55 |
_generated_text+=_sentence+'.'
|
56 |
return _generated_text
|