Spaces:
Running
Running
aliasgerovs
commited on
Commit
•
af21e05
1
Parent(s):
28cd001
Updated - Fixed plagiarsim.
Browse files- analysis.py +2 -1
- nohup.out +0 -0
- plagiarism.py +2 -2
analysis.py
CHANGED
@@ -8,6 +8,7 @@ import torch
|
|
8 |
from transformers import GPT2LMHeadModel, GPT2TokenizerFast
|
9 |
import matplotlib.pyplot as plt
|
10 |
import numpy as np
|
|
|
11 |
|
12 |
from matplotlib.patches import Circle, RegularPolygon
|
13 |
from matplotlib.path import Path
|
@@ -52,7 +53,7 @@ def normalize(value, min_value, max_value):
|
|
52 |
|
53 |
def depth_analysis(input_text, bias_buster_selected):
|
54 |
if bias_buster_selected:
|
55 |
-
|
56 |
|
57 |
usual_ranges = {
|
58 |
"estimated_slightly_difficult_words_ratio": (
|
|
|
8 |
from transformers import GPT2LMHeadModel, GPT2TokenizerFast
|
9 |
import matplotlib.pyplot as plt
|
10 |
import numpy as np
|
11 |
+
from predictors import update,update_main, correct_text, split_text
|
12 |
|
13 |
from matplotlib.patches import Circle, RegularPolygon
|
14 |
from matplotlib.path import Path
|
|
|
53 |
|
54 |
def depth_analysis(input_text, bias_buster_selected):
|
55 |
if bias_buster_selected:
|
56 |
+
input_text = update(input_text)
|
57 |
|
58 |
usual_ranges = {
|
59 |
"estimated_slightly_difficult_words_ratio": (
|
nohup.out
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
plagiarism.py
CHANGED
@@ -234,10 +234,10 @@ def plagiarism_check(
|
|
234 |
source_block_size,
|
235 |
):
|
236 |
# api_key = "AIzaSyCLyCCpOPLZWuptuPAPSg8cUIZhdEMVf6g"
|
237 |
-
|
238 |
# api_key = "AIzaSyCLyCCpOPLZWuptuPAPSg8cUIZhdEMVf6g"
|
239 |
# api_key = "AIzaSyCS1WQDMl1IMjaXtwSd_2rA195-Yc4psQE"
|
240 |
-
api_key = "AIzaSyCB61O70B8AC3l5Kk3KMoLb6DN37B7nqIk"
|
241 |
# api_key = "AIzaSyCg1IbevcTAXAPYeYreps6wYWDbU0Kz8tg"
|
242 |
# api_key = "AIzaSyA5VVwY1eEoIoflejObrxFDI0DJvtbmgW8"
|
243 |
cse_id = "851813e81162b4ed4"
|
|
|
234 |
source_block_size,
|
235 |
):
|
236 |
# api_key = "AIzaSyCLyCCpOPLZWuptuPAPSg8cUIZhdEMVf6g"
|
237 |
+
api_key = "AIzaSyA5VVwY1eEoIoflejObrxFDI0DJvtbmgW8"
|
238 |
# api_key = "AIzaSyCLyCCpOPLZWuptuPAPSg8cUIZhdEMVf6g"
|
239 |
# api_key = "AIzaSyCS1WQDMl1IMjaXtwSd_2rA195-Yc4psQE"
|
240 |
+
# api_key = "AIzaSyCB61O70B8AC3l5Kk3KMoLb6DN37B7nqIk"
|
241 |
# api_key = "AIzaSyCg1IbevcTAXAPYeYreps6wYWDbU0Kz8tg"
|
242 |
# api_key = "AIzaSyA5VVwY1eEoIoflejObrxFDI0DJvtbmgW8"
|
243 |
cse_id = "851813e81162b4ed4"
|