gregH commited on
Commit
a044d2a
·
1 Parent(s): bdc5129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -22,7 +22,7 @@ def detect(text):
22
  }
23
  return res
24
 
25
- image = gr.Textbox(label ="Text to be detected")
26
  label = gr.Label(label ="Prediction")
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.",
@@ -49,7 +49,6 @@ with gr.Interface(fn=detect, inputs=image, outputs=label, title=title, descripti
49
  with gr.Tab("Human-text examples"):
50
  gr.Examples(Human_texts, inputs=image, outputs=label)
51
  with gr.Tab("Examples of incorrect detections"):
52
- gr.Examples(Constitution_inputs, inputs=gr.Textbox(label ="Text to be detected",info ="Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).")
53
- , outputs=label)
54
 
55
  intf.launch(inline=False)
 
22
  }
23
  return res
24
 
25
+ image = gr.Textbox(label ="Text to be detected",info ="Disclaimer: The detector is not perfect. It may lead to incorrect detections (see examples below).")
26
  label = gr.Label(label ="Prediction")
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.",
 
49
  with gr.Tab("Human-text examples"):
50
  gr.Examples(Human_texts, inputs=image, outputs=label)
51
  with gr.Tab("Examples of incorrect detections"):
52
+ gr.Examples(Constitution_inputs, inputs=image, outputs=label)
 
53
 
54
  intf.launch(inline=False)