Spaces:
Running
Running
mihalykiss
commited on
Commit
·
fcf78e8
1
Parent(s):
5e5a50a
UI - theme
Browse files
app.py
CHANGED
@@ -47,12 +47,11 @@ def classify_text(text):
|
|
47 |
|
48 |
return result_message
|
49 |
|
50 |
-
title = "AI
|
51 |
description = """
|
52 |
-
**AI detection tool by SzegedAI**
|
53 |
|
54 |
-
-- **Identify AI Models:** Reveals which LLM generated the text if detected as AI.
|
55 |
-
-- **Human Verification:** Marks human-written text with a green checkmark.
|
56 |
|
57 |
**Note:** The longer the text, the better the detection accuracy.
|
58 |
"""
|
@@ -66,8 +65,9 @@ iface = gr.Blocks(css="""
|
|
66 |
font-size: 18px;
|
67 |
padding: 15px;
|
68 |
margin-bottom: 20px;
|
69 |
-
width:
|
70 |
box-sizing: border-box;
|
|
|
71 |
}
|
72 |
#result_output_box {
|
73 |
border-radius: 10px;
|
@@ -75,16 +75,21 @@ iface = gr.Blocks(css="""
|
|
75 |
font-size: 18px;
|
76 |
padding: 15px;
|
77 |
background-color: #2E2E3F;
|
78 |
-
margin-top:
|
79 |
width: 50%;
|
80 |
box-sizing: border-box;
|
81 |
text-align: center;
|
|
|
82 |
}
|
83 |
body {
|
84 |
background: #1E1E2F;
|
85 |
color: #E1E1E6;
|
86 |
font-family: 'Aptos', sans-serif;
|
87 |
padding: 20px;
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
.gradio-container {
|
90 |
border: 2px solid #4CAF50;
|
@@ -135,3 +140,4 @@ with iface:
|
|
135 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|
136 |
|
137 |
iface.launch(share=True)
|
|
|
|
47 |
|
48 |
return result_message
|
49 |
|
50 |
+
title = "Detect AI Generated Texts!"
|
51 |
description = """
|
|
|
52 |
|
53 |
+
-- 🤖 - **Identify AI Models:** Reveals which LLM generated the text if detected as AI.
|
54 |
+
-- ✅ - **Human Verification:** Marks human-written text with a green checkmark.
|
55 |
|
56 |
**Note:** The longer the text, the better the detection accuracy.
|
57 |
"""
|
|
|
65 |
font-size: 18px;
|
66 |
padding: 15px;
|
67 |
margin-bottom: 20px;
|
68 |
+
width: 70%;
|
69 |
box-sizing: border-box;
|
70 |
+
margin: auto;
|
71 |
}
|
72 |
#result_output_box {
|
73 |
border-radius: 10px;
|
|
|
75 |
font-size: 18px;
|
76 |
padding: 15px;
|
77 |
background-color: #2E2E3F;
|
78 |
+
margin-top: 20px;
|
79 |
width: 50%;
|
80 |
box-sizing: border-box;
|
81 |
text-align: center;
|
82 |
+
margin: auto;
|
83 |
}
|
84 |
body {
|
85 |
background: #1E1E2F;
|
86 |
color: #E1E1E6;
|
87 |
font-family: 'Aptos', sans-serif;
|
88 |
padding: 20px;
|
89 |
+
display: flex;
|
90 |
+
justify-content: center;
|
91 |
+
align-items: center;
|
92 |
+
height: 100vh;
|
93 |
}
|
94 |
.gradio-container {
|
95 |
border: 2px solid #4CAF50;
|
|
|
140 |
gr.Markdown(bottom_text, elem_id="bottom_text")
|
141 |
|
142 |
iface.launch(share=True)
|
143 |
+
|