Ridor commited on
Commit
030d327
·
verified ·
1 Parent(s): 378c9a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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 python import language_tool_python
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