Spaces:
Runtime error
Runtime error
gamingflexer
commited on
Commit
·
72837e0
1
Parent(s):
ec6a480
Add plagiarism checker interface to app.py
Browse files- src/app.py +26 -0
src/app.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import logging
|
| 4 |
+
|
| 5 |
+
def plagiarism_checker(authors_name):
|
| 6 |
+
print(authors_name)
|
| 7 |
+
data = {
|
| 8 |
+
"paper": ["Collective annotation of wikipedia entities in web text",
|
| 9 |
+
"Glister: Generalization based data subset selection for efficient and robust learning",
|
| 10 |
+
"Grad-match: Gradient matching based data subset selection for efficient deep model training"],
|
| 11 |
+
"paper_id": [2303.13798, 2303.13798, 2303.13798],
|
| 12 |
+
"paper_link": ["https://arxiv.org/pdf/2303.13798", "https://arxiv.org/pdf/2303.13798", "https://arxiv.org/pdf/2303.13798"],
|
| 13 |
+
"report_link" : ["", "", ""]
|
| 14 |
+
}
|
| 15 |
+
df = pd.DataFrame(data)
|
| 16 |
+
return df
|
| 17 |
+
|
| 18 |
+
iface = gr.Interface(
|
| 19 |
+
fn=plagiarism_checker,
|
| 20 |
+
inputs=gr.Textbox(show_copy_button=True, label="Enter Authors Name"),
|
| 21 |
+
outputs=gr.Dataframe(headers=["Paper Name", "Paper id", "Paper Link", "Report link"]),
|
| 22 |
+
title="Arxiv author's plagiarism check just by entering the arxiv author",
|
| 23 |
+
description="Arxiv Plagiarism Checker LLM - Enter Authors Name",
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
iface.launch()
|