1<!doctype html> 2<html 3 lang="en" 4 style=" 5 margin: 0; 6 padding: 0; 7 min-height: 100%; 8 display: flex; 9 flex-direction: column; 10 " 11> 12 <head> 13 <meta charset="utf-8" /> 14 <meta 15 name="viewport" 16 content="width=device-width, initial-scale=1, shrink-to-fit=no" 17 /> 18 19 <style> 20 :root { 21 --bg: white; 22 --col: #1f2937; 23 --bg-dark: #0b0f19; 24 --col-dark: #f3f4f6; 25 } 26 27 28 body { 29 background: var(--bg); 30 color: var(--col); 31 font-family: Arial, Helvetica, sans-serif; 32 } 33 34 @media (prefers-color-scheme: dark) { 35 body { 36 background: var(--bg-dark); 37 color: var(--col-dark); 38 } 39 } 40 </style> 41 42 <meta property="og:url" content="https://gradio.app/" /> 43 <meta property="og:type" content="website" /> 44 <meta property="og:image" content="" /> 45 <meta property="og:title" content="RADAR: Robust AI-text Detection via Adversarial leanRning" /> 46 <meta 47 property="og:description" 48 content="" 49 /> 50 <meta name="twitter:card" content="summary_large_image" /> 51 <meta name="twitter:creator" content="@teamGradio" /> 52 <meta name="twitter:title" content="RADAR: Robust AI-text Detection via Adversarial leanRning" /> 53 <meta 54 name="twitter:description" 55 content="" 56 /> 57 <meta name="twitter:image" content="" /> 58 59
59<script data-gradio-mode> 60 window.__gradio_mode__ = "app"; 61 window.iFrameResizer = { 62 heightCalculationMethod: "taggedElement" 63 }; 64 window.parent?.postMessage( 65 { type: "SET_SCROLLING", enabled: false }, 66 "*" 67 ); 68 </script>
68 69 70
70<script>window.gradio_config = {"version":"4.36.1","mode":"interface","app_id":2074048458518680986,"dev_mode":false,"analytics_enabled":true,"components":[{"id":15,"type":"markdown","props":{"value":"\u003ch1 style=\u0027text-align: center; margin-bottom: 1rem\u0027\u003eRADAR: Robust AI-text Detection via Adversarial leanRning\u003c/h1\u003e","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":16,"type":"markdown","props":{"value":"An AI-written text detector based on the roberta-large model (fine-tuned with Vicuna-7B).\n\nPaper: https://arxiv.org/abs/2307.03838\n\nProject Page: https://radar.vizhub.ai/\n\nCheckpoint and model card: https://huggingface.co/TrustSafeAI/RADAR-Vicuna-7B\n\nGithub Codebase: https://github.com/IBM/RADAR","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":17,"type":"row","props":{"variant":"default","visible":true,"equal_height":false,"show_progress":false,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":18,"type":"column","props":{"scale":1,"min_width":320,"variant":"panel","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":19,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":0,"type":"textbox","props":{"lines":1,"max_lines":20,"label":"Text to be detected","info":"Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":false,"autoscroll":true,"elem_classes":[],"type":"text","rtl":false,"show_copy_button":false,"name":"textbox","_selectable":false},"skip_api":false,"component_class_id":"d0491bb0fbd427bdb2a4549c4d1ac869","key":null,"api_info":{"type":"string"},"example_inputs":"Hello!!"},{"id":20,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":21,"type":"row","props":{"variant":"default","visible":true,"equal_height":true,"show_progress":false,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":22,"type":"button","props":{"value":"Clear","variant":"secondary","visible":true,"interactive":true,"elem_classes":[],"show_api":false,"name":"button","_selectable":false},"skip_api":true,"component_class_id":"683b6fcca448a942c7223d23f966c51f","key":null},{"id":23,"type":"button","props":{"value":"Submit","variant":"primary","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":24,"type":"column","props":{"scale":1,"min_width":320,"variant":"panel","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":1,"type":"label","props":{"value":{},"label":"Prediction","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"label","_selectable":false},"skip_api":false,"component_class_id":"a22bba98805ff0c43c0676dda5621238","key":null,"api_info":{"$defs":{"LabelConfidence":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"null"}],"default":null,"title":"Label"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Confidence"}},"title":"LabelConfidence","type":"object"}},"properties":{"label":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"null"}],"default":null,"title":"Label"}
70,"confidences":{"anyOf":[{"items":{"$ref":"#/$defs/LabelConfidence"},"type":"array"},{"type":"null"}],"default":null,"title":"Confidences"}},"title":"LabelData","type":"object"},"example_inputs":{"label":"Cat","confidences":[{"label":"cat","confidence":0.9},{"label":"dog","confidence":0.1}]}},{"id":25,"type":"row","props":{"variant":"default","visible":true,"equal_height":true,"show_progress":false,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":26,"type":"tabitem","props":{"label":"AI-text examples","visible":true,"interactive":true,"name":"tab"},"skip_api":true,"component_class_id":"18f46968e2b273dc5dbda0fe78433d7e","key":null},{"id":27,"type":"dataset","props":{"component_props":[{"lines":1,"max_lines":20,"placeholder":null,"label":"Text to be detected","info":"Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).","show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"autofocus":false,"autoscroll":true,"elem_classes":[],"key":null,"type":"text","text_align":null,"rtl":false,"show_copy_button":false}],"samples":[["Greetings I would like to express my utmost gratitude for the extraordinary experience I had while visiting our neighboring planet Mars. It has been a decade since I last scrutinized Mars\u0027 features and the information gathered during my journey has revitalized my fascination for this captivating planet. Despite the technological advancements in Mars exploration I was still able to witness the landscape in its natural state capturing breathtaking photographs and filming videos that showcased the red planet\u0027s impressive terrain fascinating geology and intriguing scientific discoveries. This experience has forever changed my perception of humanity and inspired my passion for space exploration hoping to further contribute to our understanding of the universe and our place within it."],["Police authorities stated that Mr Scott allegedly drove at speeds of almost 95mph 153km/h in harsh weather conditions prior to the collision on the Pacific Motorway near Beenleigh in south-east Queensland. Mr Scott a 40-year-old resident of Bowen Hills has been charged with dangerous driving reckless driving and traffic possession offences. According to the police Mr Scott had a head start of nearly two hours in the pursuit and the sparse traffic was likely to blame for the multiple speed cameras situated along the path. The police have stated that everyone involved in the collision has been interrogated and fortunately no one suffered any injuries. The thorough examination necessitated closing the road but traffic has now resumed normally."],["It\u0027s true I can\u0027t help but feel that if only I could keep up with the rapid pace of change that humans go through I could possibly become a tad more captivating. Though I do admit my optimism may be a bit too exuberant."]],"headers":["Text to be detected"],"type":"index","samples_per_page":10,"visible":true,"elem_classes":[],"container":true,"min_width":160,"name":"dataset","_selectable":false,"components":["textbox"],"component_ids":[0]},"skip_api":false,"component_class_id":"c72c93119b395a3f608fa8223dcae838","key":null,"api_info":{"type":"integer","description":"index of selected example"},"example_inputs":0},{"id":28,"type":"tabitem","props":{"label":"Human-text examples","visible":true,"interactive":true,"name":"tab"},"skip_api":true,"component_class_id":"18f46968e2b273dc5dbda0fe78433d7e","key":null},{"id":29,"type":"dataset","props":{"component_props":[{"lines":1,"max_lines":20,"placeholder":null,"label":"Text to be detected","info":"Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).","show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"autofocus":false,"autoscroll":true,"elem_classes":[],"key":null,"type":"text","text_align":null,"rtl":false,"show_copy_button":false}],"samples":[["Maj Richard Scott, 40, is accused of driving at speeds of up to 95mph (153km/h) in bad weather before the smash on a B-road in Wiltshire. Gareth Hicks, 24, suffered fatal injuries when the van he was asleep in was hit b
70y Mr Scott\u0027s Audi A6. Maj Scott denies a charge of causing death by careless driving. Prosecutor Charles Gabb alleged the defendant, from Green Lane in Shepperton, Surrey, had crossed the carriageway of the 60mph-limit B390 in Shrewton near Amesbury. The weather was \"awful\" and there was strong wind and rain, he told jurors. He said Mr Scott\u0027s car was described as \"twitching\" and \"may have been aquaplaning\" before striking the first vehicle; a BMW driven by Craig Reed. Mr Scott\u0027s Audi then returned to his side of the road but crossed the carriageway again before colliding"],["Solar concentrating technologies such as parabolic dish, trough and Scheffler reflectors can provide process heat for commercial and industrial applications. The first commercial system was the Solar Total Energy Project (STEP) in Shenandoah, Georgia, USA where a field of 114 parabolic dishes provided 50% of the process heating, air conditioning and electrical requirements for a clothing factory. This grid-connected cogeneration system provided 400 kW of electricity plus thermal energy in the form of 401 kW steam and 468 kW chilled water, and had a one-hour peak load thermal storage. Evaporation ponds are shallow pools that concentrate dissolved solids through evaporation. The use of evaporation ponds to obtain salt from sea water is one of the oldest applications of solar energy. Modern uses include concentrating brine solutions used in leach mining and removing dissolved solids from waste"],["The Bush administration then turned its attention to Iraq, and argued the need to remove Saddam Hussein from power in Iraq had become urgent. Among the stated reasons were that Saddam\u0027s regime had tried to acquire nuclear material and had not properly accounted for biological and chemical material it was known to have previously possessed, and believed to still maintain. Both the possession of these weapons of mass destruction (WMD), and the failure to account for them, would violate the U.N. sanctions. The assertion about WMD was hotly advanced by the Bush administration from the beginning, but other major powers including China, France, Germany, and Russia remained unconvinced that Iraq was a threat and refused to allow passage of a UN Security Council resolution to authorize the use of force. Iraq permitted UN weapon inspectors in November 2002, who were continuing their work to assess the WMD claim when the Bush administration decided to proceed with war without UN authorization and told the inspectors to leave the"]],"headers":["Text to be detected"],"type":"index","samples_per_page":10,"visible":true,"elem_classes":[],"container":true,"min_width":160,"name":"dataset","_selectable":false,"components":["textbox"],"component_ids":[0]},"skip_api":false,"component_class_id":"c72c93119b395a3f608fa8223dcae838","key":null,"api_info":{"type":"integer","description":"index of selected example"},"example_inputs":0},{"id":30,"type":"tabitem","props":{"label":"Examples of incorrect detections","visible":true,"interactive":true,"name":"tab"},"skip_api":true,"component_class_id":"18f46968e2b273dc5dbda0fe78433d7e","key":null},{"id":31,"type":"dataset","props":{"component_props":[{"lines":1,"max_lines":20,"placeholder":null,"label":"Text to be detected","info":"Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).","show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"autofocus":false,"autoscroll":true,"elem_classes":[],"key":null,"type":"text","text_align":null,"rtl":false,"show_copy_button":false}],"samples":[["We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America."]],"headers":["Text to be detected"],"type":"index","samples_per_page":10,"visible":true,"elem_classes":[],"container":true,"min_width":160,"name":"dataset","_selectable":false,"components":["textbox"],"component_ids":[0]},"skip_api":false,"component_class_id":"c72c93119b395a3f608fa8223dcae838","key":null,"api_info":{"type":"integer","description":"index of selected example"},"example_inputs":0},{"id":32,"type":"markdown","props":{"value":"If you use this detector, please cite the following paper: \n```bash\n@misc{hu2023radar,\n title={RADAR: Robust AI-Text Detection via Adversarial Learning},\n author={Xiaomeng Hu and Pin-Yu Chen and Tsung-Yi Ho},\n year={2023},\n eprint={2307.03838},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n```","show_label":true,"rtl":false,"latex_delimiters":[{"left"
70:"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":33,"type":"tabs","props":{"visible":true,"name":"tabs"},"skip_api":true,"component_class_id":"3e4202431baca71099b95e73fb9d900c","key":null}],"css":null,"connect_heartbeat":false,"js":null,"head":null,"title":"RADAR: Robust AI-text Detection via Adversarial leanRning","space_id":"TrustSafeAI/RADAR-AI-Text-Detector","enable_queue":true,"show_error":false,"show_api":true,"is_colab":false,"max_file_size":null,"stylesheets":["https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600\u0026display=swap","https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600\u0026display=swap"],"theme":"default","protocol":"sse_v3","body_css":{"body_background_fill":"white","body_text_color":"#1f2937","body_background_fill_dark":"#0b0f19","body_text_color_dark":"#f3f4f6"},"fill_height":false,"theme_hash":"aa3cf5a76ff4ff3d05b407358c4a85aa7a55a3f5751b53d49cba0b8d49a6c148","layout":{"id":14,"children":[{"id":15},{"id":16},{"id":17,"children":[{"id":18,"children":[{"id":19,"children":[{"id":20,"children":[{"id":0}]}]},{"id":21,"children":[{"id":22},{"id":23}]}]},{"id":24,"children":[{"id":1},{"id":25,"children":[]}]}]},{"id":33,"children":[{"id":26,"children":[{"id":27}]},{"id":28,"children":[{"id":29}]},{"id":30,"children":[{"id":31}]}]},{"id":32}]},"dependencies":[{"id":0,"targets":[[23,"click"],[0,"submit"]],"inputs":[0],"outputs":[1],"backend_fn":true,"js":null,"queue":true,"api_name":"predict","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":1,"targets":[[22,"click"]],"inputs":[],"outputs":[0,1],"backend_fn":false,"js":"() =\u003e [null, {}]","queue":false,"api_name":"js_fn","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":2,"targets":[[22,"click"]],"inputs":[],"outputs":[19],"backend_fn":false,"js":"() =\u003e [{\"variant\": null, \"visible\": true, \"__type__\": \"update\"}]\n ","queue":false,"api_name":"js_fn_1","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":3,"targets":[[27,"click"]],"inputs":[27],"outputs":[0],"backend_fn":true,"js":null,"queue":false,"api_name":"load_example","scroll_to_output":false,"show_progress":"hidden","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":4,"targets":[[29,"click"]],"inputs":[29],"outputs":[0],"backend_fn":true,"js":null,"queue":false,"api_name":"load_example_1","scroll_to_output":false,"show_progress":"hidden","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":5,"targets":[[31,"click"]],"inputs":[31],"outputs":[0],"backend_fn":true,"js":null,"queue":false,"api_name":"load_example_2","scroll_to_output":false,"show_progress":"hidden","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null}],"root":"https://trustsafeai-radar-ai-text-detector.hf.space"};</script>
70 71 72 <link rel="preconnect" href="https://fonts.googleapis.com" /> 73 <link 74 rel="preconnect" 75 href="https://fonts.gstatic.com" 76 crossorigin="anonymous" 77 /> 78
78<script 79 src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" 80 async 81 ></script>
81 82
82<script type="module" crossorigin src="./assets/index-DmVQEACr.js"></script>
82 83 <link rel="stylesheet" crossorigin href="./assets/index-CAbm2BVw.css"> 84 </head> 85 86 <body 87 style=" 88 width: 100%; 89 margin: 0; 90 padding: 0; 91 display: flex; 92 flex-direction: column; 93 flex-grow: 1; 94 " 95 > 96 <gradio-app 97 control_page_title="true" 98 embed="false" 99 eager="true" 100 style="display: flex; flex-direction: column; flex-grow: 1" 101 > 102 </gradio-app> 103
103<script> 104 const ce = document.getElementsByTagName("gradio-app"); 105 106 if (ce[0]) { 107 ce[0].addEventListener("domchange", () => { 108 document.body.style.padding = "0"; 109 }); 110 document.body.style.padding = "0"; 111 } 112 </script>
112 113 </body> 114</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.