gamingflexer
Add plagiarism checker interface to app.py
72837e0
raw
history blame
1.09 kB
import gradio as gr
import pandas as pd
import logging
def plagiarism_checker(authors_name):
print(authors_name)
data = {
"paper": ["Collective annotation of wikipedia entities in web text",
"Glister: Generalization based data subset selection for efficient and robust learning",
"Grad-match: Gradient matching based data subset selection for efficient deep model training"],
"paper_id": [2303.13798, 2303.13798, 2303.13798],
"paper_link": ["https://arxiv.org/pdf/2303.13798", "https://arxiv.org/pdf/2303.13798", "https://arxiv.org/pdf/2303.13798"],
"report_link" : ["", "", ""]
}
df = pd.DataFrame(data)
return df
iface = gr.Interface(
fn=plagiarism_checker,
inputs=gr.Textbox(show_copy_button=True, label="Enter Authors Name"),
outputs=gr.Dataframe(headers=["Paper Name", "Paper id", "Paper Link", "Report link"]),
title="Arxiv author's plagiarism check just by entering the arxiv author",
description="Arxiv Plagiarism Checker LLM - Enter Authors Name",
)
iface.launch()