Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from gramformer import Gramformer
|
| 2 |
+
gf = Gramformer(models=1, use_gpu=False)
|
| 3 |
+
import gradio as gr
|
| 4 |
+
app_inputs = gr.inputs.Textbox(lines=2, placeholder="Enter sentence here...")
|
| 5 |
+
interface = gr.Interface(fn=correct,
|
| 6 |
+
inputs=app_inputs,
|
| 7 |
+
outputs='text',
|
| 8 |
+
title='NajahNow grammar corrector')
|
| 9 |
+
interface.launch()
|