Spaces:
Runtime error
Runtime error
binhuang00
commited on
Commit
•
1da7904
1
Parent(s):
fc27ee8
Update demo_watermark.py
Browse files- demo_watermark.py +3 -7
demo_watermark.py
CHANGED
@@ -477,18 +477,14 @@ def run_gradio(args, model=None, device=None, tokenizer=None):
|
|
477 |
# note that state obj automatically calls value if it's a callable, want to avoid calling tokenizer at startup
|
478 |
session_tokenizer = gr.State(value=lambda : tokenizer)
|
479 |
|
480 |
-
with gr.Tab("
|
481 |
with gr.Row():
|
482 |
with gr.Column(scale=2):
|
483 |
gr.Markdown(
|
484 |
"""
|
485 |
-
|
486 |
-
*Watermarks* are embedded signals in the generated text that are invisible to humans but algorithmically
|
487 |
-
detectable, that allow *anyone* to later check whether a given span of text
|
488 |
-
was likely to have been generated by a model that uses the watermark.
|
489 |
|
490 |
-
|
491 |
-
For demonstration purposes, the space demos a selection of multi-billion parameter models (see the following note for caveats).
|
492 |
"""
|
493 |
)
|
494 |
with gr.Accordion("A note on the available models:",open=False):
|
|
|
477 |
# note that state obj automatically calls value if it's a callable, want to avoid calling tokenizer at startup
|
478 |
session_tokenizer = gr.State(value=lambda : tokenizer)
|
479 |
|
480 |
+
with gr.Tab("欢迎"):
|
481 |
with gr.Row():
|
482 |
with gr.Column(scale=2):
|
483 |
gr.Markdown(
|
484 |
"""
|
485 |
+
大型语言模型的潜在危害可以通过*水印*来减轻模型的输出。 *水印*是嵌入到生成的文本中的信号,对人类是不可见的,但是可以通过算法检测到的,可以让*任何人*以后检查给定的文本片段是否很可能是由使用了水印的模型生成的。
|
|
|
|
|
|
|
486 |
|
487 |
+
此空间展示了一种可以应用于_任何_生成语言模型的水印方法。 为了演示目的,该空间演示了一些十亿级参数模型的选择(有关注意事项,请参见以下说明)。
|
|
|
488 |
"""
|
489 |
)
|
490 |
with gr.Accordion("A note on the available models:",open=False):
|