Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
-
|
|
|
|
| 4 |
def correct(x):
|
| 5 |
-
cola = pipeline('text-classification', model='Abirate/bert_fine_tuned_cola')
|
| 6 |
correction = cola(x)
|
| 7 |
return correction
|
| 8 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
+
cola = pipeline('text-classification', model='Abirate/bert_fine_tuned_cola')
|
| 4 |
+
|
| 5 |
def correct(x):
|
|
|
|
| 6 |
correction = cola(x)
|
| 7 |
return correction
|
| 8 |
|