Spaces:
Running
Running
Commit
·
cd3b61f
1
Parent(s):
fa66b44
UI - theme
Browse files
app.py
CHANGED
@@ -56,6 +56,9 @@ Detect AI-generated texts with precision using the new **ModernBERT** model, fin
|
|
56 |
-- ✅ - **Human Verification:** Marks human-written text with a green checkmark.
|
57 |
|
58 |
**Note:** The longer the text, the better the detection accuracy.
|
|
|
|
|
|
|
59 |
"""
|
60 |
|
61 |
bottom_text = "**AI detection tool by SzegedAI**"
|
@@ -114,6 +117,7 @@ iface = gr.Blocks(css="""
|
|
114 |
text-align: center;
|
115 |
font-size: 36px;
|
116 |
font-weight: bold;
|
|
|
117 |
}
|
118 |
h2 {
|
119 |
text-align: left;
|
@@ -140,17 +144,12 @@ iface = gr.Blocks(css="""
|
|
140 |
font-size: 20px;
|
141 |
color: #E1E1E6;
|
142 |
}
|
143 |
-
#description_box {
|
144 |
-
border-bottom: 2px solid #4CAF50;
|
145 |
-
padding-bottom: 15px;
|
146 |
-
margin-bottom: 20px;
|
147 |
-
}
|
148 |
""")
|
149 |
|
150 |
with iface:
|
151 |
gr.Markdown(f"# {title}")
|
152 |
gr.Markdown(description)
|
153 |
-
text_input = gr.Textbox(label="
|
154 |
result_output = gr.Markdown("**Results will appear here...**", elem_id="result_output_box")
|
155 |
text_input.change(classify_text, inputs=text_input, outputs=result_output)
|
156 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|
|
|
56 |
-- ✅ - **Human Verification:** Marks human-written text with a green checkmark.
|
57 |
|
58 |
**Note:** The longer the text, the better the detection accuracy.
|
59 |
+
|
60 |
+
---
|
61 |
+
|
62 |
"""
|
63 |
|
64 |
bottom_text = "**AI detection tool by SzegedAI**"
|
|
|
117 |
text-align: center;
|
118 |
font-size: 36px;
|
119 |
font-weight: bold;
|
120 |
+
margin-bottom: 30px;
|
121 |
}
|
122 |
h2 {
|
123 |
text-align: left;
|
|
|
144 |
font-size: 20px;
|
145 |
color: #E1E1E6;
|
146 |
}
|
|
|
|
|
|
|
|
|
|
|
147 |
""")
|
148 |
|
149 |
with iface:
|
150 |
gr.Markdown(f"# {title}")
|
151 |
gr.Markdown(description)
|
152 |
+
text_input = gr.Textbox(label="", placeholder="Type or paste your content here...", elem_id="text_input_box", lines=5)
|
153 |
result_output = gr.Markdown("**Results will appear here...**", elem_id="result_output_box")
|
154 |
text_input.change(classify_text, inputs=text_input, outputs=result_output)
|
155 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|