Spaces:
Running
Running
eljanmahammadli
commited on
Merge branch 'eljanm'
Browse filesAdded depth analysis to the full check
__pycache__/utils.cpython-311.pyc
ADDED
Binary file (12.9 kB). View file
|
|
__pycache__/writing_analysis.cpython-311.pyc
ADDED
Binary file (7.76 kB). View file
|
|
app.py
CHANGED
@@ -244,10 +244,12 @@ def main(
|
|
244 |
day_to,
|
245 |
domains_to_skip,
|
246 |
)
|
|
|
247 |
return (
|
248 |
bc_score,
|
249 |
mc_score,
|
250 |
formatted_tokens,
|
|
|
251 |
)
|
252 |
|
253 |
|
@@ -260,9 +262,9 @@ print("loading depth analysis")
|
|
260 |
nltk.download('stopwords')
|
261 |
nltk.download('punkt')
|
262 |
command = ['python', '-m', 'spacy', 'download', 'en_core_web_sm']
|
263 |
-
|
264 |
# Execute the command
|
265 |
subprocess.run(command)
|
|
|
266 |
|
267 |
nlp = spacy.load("en_core_web_sm")
|
268 |
|
@@ -379,10 +381,10 @@ with gr.Blocks() as demo:
|
|
379 |
only_ai_btn = gr.Button("AI Check")
|
380 |
with gr.Column():
|
381 |
only_plagiarism_btn = gr.Button("Plagiarism Check")
|
382 |
-
with gr.Column():
|
383 |
-
submit_btn = gr.Button("Full Check")
|
384 |
with gr.Column():
|
385 |
depth_analysis_btn = gr.Button("Depth Analysis")
|
|
|
|
|
386 |
gr.Markdown(
|
387 |
"""
|
388 |
## Output
|
@@ -446,7 +448,7 @@ with gr.Blocks() as demo:
|
|
446 |
with gr.Row():
|
447 |
with gr.Column():
|
448 |
writing_analysis_plot = gr.Plot(
|
449 |
-
label="
|
450 |
)
|
451 |
|
452 |
submit_btn.click(
|
@@ -466,6 +468,7 @@ with gr.Blocks() as demo:
|
|
466 |
bcLabel,
|
467 |
mcLabel,
|
468 |
sentenceBreakdown,
|
|
|
469 |
],
|
470 |
api_name="main",
|
471 |
)
|
|
|
244 |
day_to,
|
245 |
domains_to_skip,
|
246 |
)
|
247 |
+
depth_analysis_plot = depth_analysis(input)
|
248 |
return (
|
249 |
bc_score,
|
250 |
mc_score,
|
251 |
formatted_tokens,
|
252 |
+
depth_analysis_plot,
|
253 |
)
|
254 |
|
255 |
|
|
|
262 |
nltk.download('stopwords')
|
263 |
nltk.download('punkt')
|
264 |
command = ['python', '-m', 'spacy', 'download', 'en_core_web_sm']
|
|
|
265 |
# Execute the command
|
266 |
subprocess.run(command)
|
267 |
+
nlp = spacy.load("en_core_web_sm")
|
268 |
|
269 |
nlp = spacy.load("en_core_web_sm")
|
270 |
|
|
|
381 |
only_ai_btn = gr.Button("AI Check")
|
382 |
with gr.Column():
|
383 |
only_plagiarism_btn = gr.Button("Plagiarism Check")
|
|
|
|
|
384 |
with gr.Column():
|
385 |
depth_analysis_btn = gr.Button("Depth Analysis")
|
386 |
+
with gr.Column():
|
387 |
+
submit_btn = gr.Button("Full Check")
|
388 |
gr.Markdown(
|
389 |
"""
|
390 |
## Output
|
|
|
448 |
with gr.Row():
|
449 |
with gr.Column():
|
450 |
writing_analysis_plot = gr.Plot(
|
451 |
+
label="Writing Analysis Plot"
|
452 |
)
|
453 |
|
454 |
submit_btn.click(
|
|
|
468 |
bcLabel,
|
469 |
mcLabel,
|
470 |
sentenceBreakdown,
|
471 |
+
writing_analysis_plot,
|
472 |
],
|
473 |
api_name="main",
|
474 |
)
|