Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
@@ -7,16 +7,26 @@ def run_test_power(model_name, real_text, generated_text, N=10):
|
|
7 |
css = """
|
8 |
#header { text-align: center; font-size: 1.5em; margin-bottom: 20px; }
|
9 |
#output-text { font-weight: bold; font-size: 1.2em; }
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
"""
|
11 |
|
12 |
# Gradio App
|
13 |
with gr.Blocks(css=css) as app:
|
14 |
with gr.Row():
|
15 |
gr.HTML('<div id="header">Human or AI Text Detector</div>')
|
16 |
-
with gr.
|
17 |
-
gr.
|
18 |
"""
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
"""
|
21 |
)
|
22 |
with gr.Row():
|
|
|
7 |
css = """
|
8 |
#header { text-align: center; font-size: 1.5em; margin-bottom: 20px; }
|
9 |
#output-text { font-weight: bold; font-size: 1.2em; }
|
10 |
+
.links {
|
11 |
+
display: flex;
|
12 |
+
justify-content: flex-end;
|
13 |
+
gap: 15px;
|
14 |
+
margin-right: 10px;
|
15 |
+
}
|
16 |
"""
|
17 |
|
18 |
# Gradio App
|
19 |
with gr.Blocks(css=css) as app:
|
20 |
with gr.Row():
|
21 |
gr.HTML('<div id="header">Human or AI Text Detector</div>')
|
22 |
+
with gr.Row():
|
23 |
+
gr.HTML(
|
24 |
"""
|
25 |
+
<div class="links">
|
26 |
+
<a href="https://openreview.net/forum?id=z9j7wctoGV" target="_blank">Paper</a>
|
27 |
+
<a href="https://github.com/xLearn-AU/R-Detect" target="_blank">Code</a>
|
28 |
+
<a href="mailto:[email protected]" target="_blank">Contact</a>
|
29 |
+
</div>
|
30 |
"""
|
31 |
)
|
32 |
with gr.Row():
|