Spaces:
Runtime error
Runtime error
Update demo.py
Browse files
demo.py
CHANGED
@@ -70,10 +70,10 @@ css = """
|
|
70 |
height: 100px; /* Set height to 100px */
|
71 |
}
|
72 |
|
73 |
-
|
74 |
-
|
|
|
75 |
}
|
76 |
-
|
77 |
"""
|
78 |
|
79 |
# Gradio App
|
@@ -120,13 +120,13 @@ with gr.Blocks(css=css) as app:
|
|
120 |
submit_button.click(run_test_power, inputs=[model_name, input_text, input_text], outputs=output)
|
121 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|
122 |
|
123 |
-
with gr.Accordion("Disclaimer", open=False
|
124 |
gr.Markdown("""
|
125 |
- **Disclaimer**: This tool is for demonstration purposes only. It is not a foolproof AI detector.
|
126 |
- **Accuracy**: Results may vary based on input length and quality.
|
127 |
""")
|
128 |
|
129 |
-
with gr.Accordion("Citations", open=False
|
130 |
gr.Markdown("""
|
131 |
```
|
132 |
@inproceedings{zhangs2024MMDMP,
|
|
|
70 |
height: 100px; /* Set height to 100px */
|
71 |
}
|
72 |
|
73 |
+
/* Adjust the width for the accordion */
|
74 |
+
.gradio-accordion {
|
75 |
+
width: 100%; /* Set full width for accordions */
|
76 |
}
|
|
|
77 |
"""
|
78 |
|
79 |
# Gradio App
|
|
|
120 |
submit_button.click(run_test_power, inputs=[model_name, input_text, input_text], outputs=output)
|
121 |
clear_button.click(lambda: ("", ""), inputs=[], outputs=[input_text, output])
|
122 |
|
123 |
+
with gr.Accordion("Disclaimer", open=False):
|
124 |
gr.Markdown("""
|
125 |
- **Disclaimer**: This tool is for demonstration purposes only. It is not a foolproof AI detector.
|
126 |
- **Accuracy**: Results may vary based on input length and quality.
|
127 |
""")
|
128 |
|
129 |
+
with gr.Accordion("Citations", open=False):
|
130 |
gr.Markdown("""
|
131 |
```
|
132 |
@inproceedings{zhangs2024MMDMP,
|