Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import requests
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
-
from textblob import TextBlob
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
@@ -16,8 +15,7 @@ def spell_checker(sentence:str)-> str: #it's import to specify the return type
|
|
16 |
arg1: the sentence to be corrected
|
17 |
"""
|
18 |
try:
|
19 |
-
|
20 |
-
corrected_sentence = str(blob.correct())
|
21 |
return corrected_sentence
|
22 |
except Exception as e:
|
23 |
return f"An error occurred during spell checking: {str(e)}"
|
|
|
4 |
import pytz
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
|
|
7 |
from Gradio_UI import GradioUI
|
8 |
|
9 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
15 |
arg1: the sentence to be corrected
|
16 |
"""
|
17 |
try:
|
18 |
+
corrected_sentence = corrected_sentence+"****"
|
|
|
19 |
return corrected_sentence
|
20 |
except Exception as e:
|
21 |
return f"An error occurred during spell checking: {str(e)}"
|