evoss commited on
Commit
201e647
·
1 Parent(s): 437fad1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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)