jer233 commited on
Commit
e7a00a5
·
verified ·
1 Parent(s): 1569480

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -5
demo.py CHANGED
@@ -70,7 +70,7 @@ css = """
70
  height: 100px; /* Set height to 100px */
71
  }
72
 
73
- .Accordion {
74
  Width: 100%;
75
  }
76
 
@@ -120,14 +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
- elem_classes=["Accordion"],
129
 
130
- with gr.Accordion("Citations", open=False):
131
  gr.Markdown("""
132
  ```
133
  @inproceedings{zhangs2024MMDMP,
@@ -138,6 +137,5 @@ with gr.Blocks(css=css) as app:
138
  }
139
  ```
140
  """)
141
- elem_classes=["Accordion"],
142
 
143
  app.launch()
 
70
  height: 100px; /* Set height to 100px */
71
  }
72
 
73
+ .accordion {
74
  Width: 100%;
75
  }
76
 
 
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, elem_classes=["accordion"]):
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, elem_classes=["accordion"]):
130
  gr.Markdown("""
131
  ```
132
  @inproceedings{zhangs2024MMDMP,
 
137
  }
138
  ```
139
  """)
 
140
 
141
  app.launch()