Spaces:
Running
Running
naveenvenkatesh
commited on
Commit
•
df6541f
1
Parent(s):
52ef21a
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ from incorrect_sentence_finder import IncorrectSentenceFinder
|
|
6 |
import openai
|
7 |
from pdftojson import PdftoJson
|
8 |
from headings_extractor import HeadingsExtractor
|
|
|
|
|
|
|
9 |
import gradio as gr
|
10 |
|
11 |
def file_output_fn(file_path):
|
@@ -63,9 +66,18 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
|
|
63 |
with gr.TabItem("pdf"):
|
64 |
ex= HeadingsExtractor()
|
65 |
ex.gradio_interface()
|
|
|
66 |
with gr.TabItem("Incorrect_Sentence"):
|
67 |
inf= IncorrectSentenceFinder()
|
68 |
inf.gradio_interface()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
# with gr.Row(elem_id = "col-container",scale=0.80):
|
70 |
# with gr.Column(elem_id = "col-container",scale=0.80):
|
71 |
# file = gr.File(label="File",elem_classes="filenameshow")
|
|
|
6 |
import openai
|
7 |
from pdftojson import PdftoJson
|
8 |
from headings_extractor import HeadingsExtractor
|
9 |
+
from incompletesentencefinder import IncompleteSentenceFinder
|
10 |
+
from aggressive_content_finder import AggressiveContentFinder
|
11 |
+
|
12 |
import gradio as gr
|
13 |
|
14 |
def file_output_fn(file_path):
|
|
|
66 |
with gr.TabItem("pdf"):
|
67 |
ex= HeadingsExtractor()
|
68 |
ex.gradio_interface()
|
69 |
+
|
70 |
with gr.TabItem("Incorrect_Sentence"):
|
71 |
inf= IncorrectSentenceFinder()
|
72 |
inf.gradio_interface()
|
73 |
+
|
74 |
+
with gr.TabItem("Incomplete Sentence"):
|
75 |
+
inc= IncompleteSentenceFinder()
|
76 |
+
inc.gradio_interface()
|
77 |
+
|
78 |
+
with gr.TabItem("Aggressive Content"):
|
79 |
+
agg= AggressiveContentFinder()
|
80 |
+
agg.gradio_interface()
|
81 |
# with gr.Row(elem_id = "col-container",scale=0.80):
|
82 |
# with gr.Column(elem_id = "col-container",scale=0.80):
|
83 |
# file = gr.File(label="File",elem_classes="filenameshow")
|