Skip to content

Commit b33e29b

Browse files
committed
final commit
1 parent 9025792 commit b33e29b

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def upload():
125125
# # flash(str(similarity_ratio*100) + " percent plagiarism detected.")
126126
# return render_template('teachers.html', data=similarity_ratio)
127127

128-
cloud = CopyleaksCloud(Product.Education, 'bhardwaj.vishalnit@outlook.com', 'C762D08D-6622-4634-BE1F-B9FEA8A9F098')
128+
cloud = CopyleaksCloud(Product.Education, 'vishalbhardwaj998@gmail.com', '06BBEC2A-F27A-45DA-86AB-E515838ED1EF')
129129
print("You've got %s Copyleaks %s API credits" % (cloud.getCredits(), cloud.getProduct())) #get credit balance
130130
options = ProcessOptions()
131131
# options.setSandboxMode(True)

templates/teachers.html

+13-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ <h1>Plagiarism checker for assignments</h1>
2121
<input type="file" name="file[]" multiple="">
2222
<input type="submit" value="Check Plagiarism">
2323
</form>
24-
{% if data %}
25-
<br>
26-
<h5> {{ data }} percent plagiarism found. </h5>
27-
{% endif %}
24+
<br>
25+
<ul>
26+
{% for result in data %}
27+
<hr>
28+
{% if result.URL != None %}
29+
<li>{{ result }}</li><br>
30+
{% endif %}
31+
{% endfor %}
32+
<hr>
33+
</ul>
34+
<!-- <br>
35+
<h5> {{ data }} percent plagiarism found. </h5> -->
36+
2837

2938
{% endblock %}

0 commit comments

Comments
 (0)