Sakil commited on
Commit
a3b1749
·
1 Parent(s): f9c6f55

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ #import openai
3
+ import gradio as gr
4
+ # from util import*
5
+ from textblob import TextBlob
6
+
7
+ def get_your_doc_correction(doc):
8
+ gfg = TextBlob(doc)
9
+ gfg = gfg.correct()
10
+ return gfg
11
+ iface = gr.Interface(get_your_doc_correction,
12
+ inputs="text",
13
+ outputs="text",
14
+ examples=['I am briilliant stufdent.'],
15
+ theme="peach",
16
+ title='SPELL CHECKER APP',
17
+ description="You can validate your document using this application.")
18
+ iface.launch(inline=False)
19
+