import gradio as gr title = "Neural Plagiarism Detection Demo" description = """#

๐ŸŽฉ ๐Ÿ”Ž Plagiarism Detection Demo ๐Ÿ”Ž ๐ŸŽฉ

The model was trained on the [Machine Paraphrase Dataset](https://huggingface.co/datasets/jpwahle/machine-paraphrase-dataset) to detect machine-generated paraphrases. It works best for paraphrases from research papers, wikipedia, or graduation theses.""" examples = [ [ "The North Pacific right whale seems to happen in two populaces. The" " populace in the eastern North Pacific/Bering Sea is amazingly low," " numbering around 30 people. A bigger western populace of 100รƒยขร‚ย€ร‚ย“" " 200 seems, by all accounts, to be making due in the Sea of Okhotsk," " yet next to no is thought about this populace. In this manner, the" " two northern right whale species are the most jeopardized of every" " extensive whale and two of the most imperiled creature species on" " the planet. In light of current populace thickness patterns, the two" " species are anticipated to end up wiped out inside 200 years. The" " Pacific species was truly found in summer from the Sea of Okhotsk in" " the west to the Gulf of Alaska in the east, for the most part north" " of 50รƒย‚ร‚ยฐN. Today, sightings are exceptionally uncommon and for the" " most part happen in the mouth of the Sea of Okhotsk and in the" " eastern Bering Sea. In spite of the fact that this species is all" " around prone to be transitory like the other two species, its" " development designs are not known." ], [ """On 12 June 1917, a long time before "Mutsu" was set down, Hiraga proposed a modified structure for the ship that mirrored the exercises from the Battle of Jutland that had happened the earlier year, and consolidated advances in kettle innovation. Given undertaking number A-125, his structure included an additional twin primary firearm turret, utilizing space and weight made accessible by the decrease of the quantity of boilers from 21 to 12, while the power continued as before. He diminished the auxiliary weapon from 20 firearms to 16, in spite of the fact that they were brought up in stature to improve their capacity to discharge amid overwhelming climate and to improve their bends of shoot. To expand the ship's insurance he proposed calculating the belt protection outwards to improve its protection from flat flame, and expanding the thickness of the lower deck defensive layer and the torpedo bulkhead. Hiraga additionally intended to add against torpedo lumps to improve submerged security. He assessed that his ship would dislodge as much as "Nagato", in spite of the fact that it would cost around a million yen more. Hiraga's progressions would have impressively deferred "Mutsu"s fruition and were dismissed by the Navy Ministry.""" ], [ "On 24 February 2022, Russia invaded Ukraine in a major escalation of" " the Russo-Ukrainian War, which began in 2014. The invasion has" " likely resulted in tens of thousands of deaths on both sides and" " caused Europe's largest refugee crisis since World War II, with an" " estimated 8 million people being displaced within the country by" " late May as well as 7.8 million Ukrainians fleeing the country as of" " 8 November 2022. Within five weeks of the invasion, Russia" " experienced its greatest emigration since the 1917 October" " Revolution. The invasion has also caused global food shortages." ], [ "Plagiarism is the representation of another's language, thoughts," " ideas, or expressions as one's own original work. In educational" " contexts, there are differing definitions of plagiarism depending on" " the institution. Plagiarism is considered a violation of academic" " integrity such as truth and knowledge through intellectual and" " personal honesty in learning, teaching, research, fairness, respect" " and responsibility, and a breach of journalistic ethics. It is" " subject to sanctions such as penalties, suspension, expulsion from" " school or work, substantial fines and even imprisonment." ], ] gr.Interface.load( "huggingface/jpwahle/longformer-base-plagiarism-detection", inputs=gr.inputs.Textbox(lines=5, label="Input Text"), title=title, description=description, examples=examples, ).launch()