Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
def count_verbs(x):
|
5 |
+
cola = pipeline('text-classification', model='Abirate/bert_fine_tuned_cola')
|
6 |
+
correction = cola(x)
|
7 |
+
return correction
|
8 |
+
|
9 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text", examples = [
|
10 |
+
["Is this sentence correkt."],
|
11 |
+
["I will esteem the country with the biggest economy."]])
|
12 |
+
iface.launch(debug=True)
|