gregH commited on
Commit
02bcd03
·
1 Parent(s): d582a83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def detect(text):
22
  }
23
  return res
24
 
25
- image = gr.Textbox()
26
  label = gr.Label()
27
  AI_texts = [
28
  "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' 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's 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.",
@@ -41,7 +41,6 @@ description = "An AI-written text detector based on the roberta-large model (fin
41
  intf = gr.Interface(fn=detect, inputs=image, outputs=label, title=title,
42
  description=description)
43
  with gr.Interface(fn=detect, inputs=image, outputs=label, title=title, description=description) as intf:
44
- gr.Markdown("Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).")
45
  with gr.Tab("AI-text examples"):
46
  gr.Examples(AI_texts, inputs=image, outputs=label)
47
  with gr.Tab("Human-text examples"):
 
22
  }
23
  return res
24
 
25
+ image = gr.Textbox(info ="Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).")
26
  label = gr.Label()
27
  AI_texts = [
28
  "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' 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's 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.",
 
41
  intf = gr.Interface(fn=detect, inputs=image, outputs=label, title=title,
42
  description=description)
43
  with gr.Interface(fn=detect, inputs=image, outputs=label, title=title, description=description) as intf:
 
44
  with gr.Tab("AI-text examples"):
45
  gr.Examples(AI_texts, inputs=image, outputs=label)
46
  with gr.Tab("Human-text examples"):