Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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 |
+
|