File size: 571 Bytes
a3b1749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
#import openai
import gradio as gr
# from util import*
from textblob import TextBlob

def get_your_doc_correction(doc):
  gfg = TextBlob(doc)
  gfg = gfg.correct()
  return gfg
iface = gr.Interface(get_your_doc_correction,
                     inputs="text",
                     outputs="text",
                     examples=['I am briilliant stufdent.'],
                     theme="peach",
                     title='SPELL CHECKER APP',
                     description="You can validate your document  using this application.")
iface.launch(inline=False)