Spaces:
Runtime error
Runtime error
Update demo.py
Browse files
demo.py
CHANGED
@@ -52,5 +52,25 @@ with gr.Blocks(css=css) as app:
|
|
52 |
run_test_power, inputs=[model_name, input_text, input_text], outputs=output
|
53 |
)
|
54 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
app.launch()
|
|
|
52 |
run_test_power, inputs=[model_name, input_text, input_text], outputs=output
|
53 |
)
|
54 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|
55 |
+
with gr.Accordion("Disclaimer", open=False):
|
56 |
+
gr.Markdown(
|
57 |
+
"""
|
58 |
+
- **Disclaimer**: This tool is for demonstration purposes only. It is not a foolproof AI detector.
|
59 |
+
- **Accuracy**: Results may vary based on input length and quality.
|
60 |
+
"""
|
61 |
+
)
|
62 |
+
with gr.Accordion("Citations", open=False):
|
63 |
+
gr.Markdown(
|
64 |
+
"""
|
65 |
+
```
|
66 |
+
@inproceedings{zhangs2024MMDMP,
|
67 |
+
title={Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancy},
|
68 |
+
author={Zhang, Shuhai and Song, Yiliao and Yang, Jiahao and Li, Yuanqing and Han, Bo and Tan, Mingkui},
|
69 |
+
booktitle = {International Conference on Learning Representations (ICLR)},
|
70 |
+
year={2024}
|
71 |
+
}
|
72 |
+
```
|
73 |
+
"""
|
74 |
+
)
|
75 |
|
76 |
app.launch()
|