hashirlodhi commited on
Commit
ce981c0
·
verified ·
1 Parent(s): d2cf20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -18,10 +18,11 @@ except ImportError:
18
  def analyze_text(text):
19
  """Forensic analysis focusing on 3-5 biggest logical proofs"""
20
  if len(text.strip()) < 50:
21
- return "⚠️ Please provide at least 50 characters for accurate analysis."
22
 
23
  prompt = f"""
24
- Conduct a forensic analysis of this text and identify the 3-5 BIGGEST, MOST LOGICAL proofs
 
25
  that definitively show whether it's human or AI-generated. Focus only on the most undeniable evidence.
26
 
27
  TEXT:
@@ -88,7 +89,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="emerald")) as app:
88
  examples = [
89
  ["The way the moonlight danced... that's not something algorithms capture. It's in the imperfect pauses between words where humanity lives."],
90
  ["The optimal temperature for this chemical reaction is 37.5°C, with a tolerance of ±2°C. This falls within the expected range according to published studies."],
91
- ["Lol idk why but when I try to explain it just comes out all wrong? Like my brain and mouth ain't connected today smh"]
92
  ]
93
 
94
  gr.Examples(
 
18
  def analyze_text(text):
19
  """Forensic analysis focusing on 3-5 biggest logical proofs"""
20
  if len(text.strip()) < 50:
21
+ return "🔍Write Your Text here for Analysis!"
22
 
23
  prompt = f"""
24
+ You are a Text Analyzer Anna with experience of 40 Years in this field, and you are an expert in Analyzing Text, whether a text is written
25
+ by AI or not. Conduct a forensic analysis of this text and identify the 3-5 BIGGEST, MOST LOGICAL proofs
26
  that definitively show whether it's human or AI-generated. Focus only on the most undeniable evidence.
27
 
28
  TEXT:
 
89
  examples = [
90
  ["The way the moonlight danced... that's not something algorithms capture. It's in the imperfect pauses between words where humanity lives."],
91
  ["The optimal temperature for this chemical reaction is 37.5°C, with a tolerance of ±2°C. This falls within the expected range according to published studies."],
92
+ ["Lol, idk why, but when I try to explain it just comes out all wrong? Like my brain and mouth ain't connected today smh"]
93
  ]
94
 
95
  gr.Examples(