Spaces:
Running
Running
Commit
Β·
0fd14a7
1
Parent(s):
690b2f2
UI - theme
Browse files
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 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 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;
|