Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,11 @@ import pytz
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from huggingface_hub import InferenceClient
|
8 |
-
from
|
9 |
|
10 |
from Gradio_UI import GradioUI
|
|
|
|
|
11 |
|
12 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
13 |
@tool
|
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
from huggingface_hub import InferenceClient
|
8 |
+
from transformers import pipeline
|
9 |
|
10 |
from Gradio_UI import GradioUI
|
11 |
+
grammar_corrector = pipeline("text2text-generation", model="vennify/t5-base-grammar-correction")
|
12 |
+
|
13 |
|
14 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
15 |
@tool
|