Update README.md
Browse files
README.md
CHANGED
@@ -42,9 +42,9 @@ arguments = TTSettings(num_beams=4, min_length=1)
|
|
42 |
sentence = "Wat iz your nam"
|
43 |
|
44 |
correction = model.generate_text("grammar: "+sentence, args=arguments)
|
45 |
-
if(
|
46 |
-
|
47 |
|
48 |
-
print(
|
49 |
|
50 |
```
|
|
|
42 |
sentence = "Wat iz your nam"
|
43 |
|
44 |
correction = model.generate_text("grammar: "+sentence, args=arguments)
|
45 |
+
if(correction.text.find(" .")):
|
46 |
+
correction.text=result.text.replace(" .", ".")
|
47 |
|
48 |
+
print(correction.text) # Correction: "What is your name?".
|
49 |
|
50 |
```
|