jer233 commited on
Commit
fa64871
·
verified ·
1 Parent(s): 538aa00

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +13 -3
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.Column():
17
- gr.Markdown(
18
  """
19
- [Paper](https://openreview.net/forum?id=z9j7wctoGV) | [Code](https://github.com/xLearn-AU/R-Detect) | [Contact](mailto:[email protected])
 
 
 
 
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():