mihalykiss commited on
Commit
0fd14a7
Β·
1 Parent(s): 690b2f2

UI - theme

Browse files
Files changed (1) hide show
  1. app.py +9 -13
app.py CHANGED
@@ -48,18 +48,16 @@ def classify_text(text):
48
  return f"**Result:**\n\n{prediction_label}\n\n{confidence_message}"
49
 
50
  title = "🧠 SzegedAI ModernBERT Text Detector"
51
- description = (
52
- """
53
- **AI Detection Tool by SzegedAI**
54
-
55
- **Detect AI-generated texts with precision.** This tool uses the new **ModernBERT** model, fine-tuned for machine-generated text detection, and able to detect 40 different models.
56
 
57
- - **πŸ€– Identify AI Models**: If detected as AI-generated, the system will reveal which LLM was responsible for the text generation.
58
- - **βœ… Human Verification**: If confidently human, the result will be marked with a **green checkmark**.
59
-
60
- **Press the button below to classify your text!**
61
- """
62
- )
 
63
 
64
  iface = gr.Interface(
65
  fn=classify_text,
@@ -76,10 +74,8 @@ iface = gr.Interface(
76
  ),
77
  title=title,
78
  description=description,
79
- theme="compact",
80
  allow_flagging="never",
81
  live=False,
82
- submit_button="🎯 Analyze Now",
83
  css="""
84
  #text_input_box, #result_output_box {
85
  border-radius: 10px;
 
48
  return f"**Result:**\n\n{prediction_label}\n\n{confidence_message}"
49
 
50
  title = "🧠 SzegedAI ModernBERT Text Detector"
51
+ description = """
52
+ **AI Detection Tool by SzegedAI**
 
 
 
53
 
54
+ Detect AI-generated texts with precision using the new **ModernBERT** model, fine-tuned for machine-generated text detection, and capable of identifying 40 different models.
55
+
56
+ - **πŸ€– Identify AI Models**: Reveals which LLM generated the text if detected as AI.
57
+ - **βœ… Human Verification**: Marks confidently human-written text with a green checkmark.
58
+
59
+ **Press the button below to classify your text!**
60
+ """
61
 
62
  iface = gr.Interface(
63
  fn=classify_text,
 
74
  ),
75
  title=title,
76
  description=description,
 
77
  allow_flagging="never",
78
  live=False,
 
79
  css="""
80
  #text_input_box, #result_output_box {
81
  border-radius: 10px;