Spaces:
Runtime error
Runtime error
File size: 1,393 Bytes
72837e0 289f685 72837e0 d3d991f 72837e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import gradio as gr
import pandas as pd
import logging
from scrapper.main import ArxivPaper
"""
author_obj = ArxivPaper("Andrew Ng")
paper_links = author_obj.get_results_google(number_of_results=25)
paper_ids = author_obj.get_paper_id(paper_links)
author_obj.get_paper_details_batch(paper_ids=paper_ids, path="./data/papers")
"""
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",
allow_flagging = False,
)
iface.launch()
|