Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ default_text = "This should working"
|
|
7 |
sent = st.text_area("Text", default_text, height=40)
|
8 |
num_correct_options = st.number_input('Number of Correction Options', min_value=1, max_value=3, value=1, step=1)
|
9 |
|
10 |
-
from transformers import
|
11 |
import torch
|
12 |
torch_device = 'cuda' if torch.cude.is_available() else 'cpu'
|
13 |
tokenizer = T5Tokenizer.from_pretrained('deep-learning-analytics/GrammarCorrector')
|
|
|
7 |
sent = st.text_area("Text", default_text, height=40)
|
8 |
num_correct_options = st.number_input('Number of Correction Options', min_value=1, max_value=3, value=1, step=1)
|
9 |
|
10 |
+
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
11 |
import torch
|
12 |
torch_device = 'cuda' if torch.cude.is_available() else 'cpu'
|
13 |
tokenizer = T5Tokenizer.from_pretrained('deep-learning-analytics/GrammarCorrector')
|