Spaces:
Sleeping
Sleeping
jwkirchenbauer
commited on
Commit
β’
aed6478
1
Parent(s):
fcc6620
markdown formatting
Browse files- demo_watermark.py +16 -16
demo_watermark.py
CHANGED
@@ -323,24 +323,24 @@ def run_gradio(args, model=None, device=None, tokenizer=None):
|
|
323 |
detect_partial = partial(detect, device=device, tokenizer=tokenizer)
|
324 |
|
325 |
with gr.Blocks() as demo:
|
326 |
-
|
327 |
# Top section, greeting and instructions
|
328 |
-
with gr.
|
329 |
-
gr.
|
330 |
-
|
331 |
-
|
|
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
|
345 |
with gr.Accordion("Understanding the output metrics",open=False):
|
346 |
gr.Markdown(
|
|
|
323 |
detect_partial = partial(detect, device=device, tokenizer=tokenizer)
|
324 |
|
325 |
with gr.Blocks() as demo:
|
|
|
326 |
# Top section, greeting and instructions
|
327 |
+
with gr.Row():
|
328 |
+
with gr.Column(scale=2):
|
329 |
+
gr.Markdown(
|
330 |
+
"""
|
331 |
+
![visitor badge](https://visitor-badge.glitch.me/badge?page_id=tomg-group-umd_lm-watermarking)
|
332 |
|
333 |
+
[![](https://badgen.net/badge/icon/GitHub?icon=github&label)](https://github.com/jwkirchenbauer/lm-watermarking)
|
334 |
+
"""
|
335 |
+
)
|
336 |
+
with gr.Column(scale=6):
|
337 |
+
gr.Markdown(
|
338 |
+
"""
|
339 |
+
## π§ [A Watermark for Large Language Models](https://arxiv.org/abs/2301.10226) π
|
340 |
+
"""
|
341 |
+
)
|
342 |
+
with gr.Column(scale=2):
|
343 |
+
pass
|
344 |
|
345 |
with gr.Accordion("Understanding the output metrics",open=False):
|
346 |
gr.Markdown(
|