Julien Matuszak commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import requests
|
|
| 6 |
from gradio_client import Client
|
| 7 |
|
| 8 |
# Initialize models
|
| 9 |
-
nlp = spacy.load("
|
| 10 |
spell_checker = pipeline("text2text-generation", model="oliverguhr/spelling-correction-english-base")
|
| 11 |
|
| 12 |
def preprocess_and_forward(text: str) -> str:
|
|
|
|
| 6 |
from gradio_client import Client
|
| 7 |
|
| 8 |
# Initialize models
|
| 9 |
+
nlp = spacy.load("en_core_web_sw") # More accurate NER
|
| 10 |
spell_checker = pipeline("text2text-generation", model="oliverguhr/spelling-correction-english-base")
|
| 11 |
|
| 12 |
def preprocess_and_forward(text: str) -> str:
|