Spaces:
Running
Running
Initial commit
Browse files- InferenceServer.py +1 -1
- requirements.txt +1 -2
InferenceServer.py
CHANGED
|
@@ -57,5 +57,5 @@ def correct(input_sentence, max_candidates=1):
|
|
| 57 |
corrected.add(correction_tokenizer.decode(pred, skip_special_tokens=True).strip())
|
| 58 |
|
| 59 |
corrected = list(corrected)
|
| 60 |
-
return corrected[0], 0 #Corrected Sentence, Dummy score
|
| 61 |
|
|
|
|
| 57 |
corrected.add(correction_tokenizer.decode(pred, skip_special_tokens=True).strip())
|
| 58 |
|
| 59 |
corrected = list(corrected)
|
| 60 |
+
return (corrected[0], 0) #Corrected Sentence, Dummy score
|
| 61 |
|
requirements.txt
CHANGED
|
@@ -4,8 +4,7 @@ torch
|
|
| 4 |
fastapi
|
| 5 |
uvicorn
|
| 6 |
spacy==2.3.0
|
| 7 |
-
|
| 8 |
-
errant==2.2.0
|
| 9 |
fsspec==2021.5.0
|
| 10 |
tokenizers
|
| 11 |
fuzzywuzzy==0.18.0
|
|
|
|
| 4 |
fastapi
|
| 5 |
uvicorn
|
| 6 |
spacy==2.3.0
|
| 7 |
+
errant
|
|
|
|
| 8 |
fsspec==2021.5.0
|
| 9 |
tokenizers
|
| 10 |
fuzzywuzzy==0.18.0
|