Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,22 +110,22 @@ ui_css = """
|
|
110 |
}
|
111 |
"""
|
112 |
# Set up the Gradio interface
|
113 |
-
with gr.Blocks(
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
with gr.Row(elem_id="output-elems"):
|
123 |
-
gr.Markdown("This text is a violation: ")
|
124 |
-
outputs=gr.Textbox(label="Prediction Result", elem_id="output-box", interactive=False)
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
129 |
|
130 |
submit_button.click(predict, inputs=inputs, outputs=outputs)
|
131 |
clear_button.click(lambda: ("", ""), inputs=None, outputs=[inputs, outputs])
|
|
|
110 |
}
|
111 |
"""
|
112 |
# Set up the Gradio interface
|
113 |
+
with gr.Blocks(css=ui_css) as demo:
|
114 |
+
with gr.Row(elem_id="body"):
|
115 |
+
with gr.Row(elem_id="header"):
|
116 |
+
gr.Image(value="https://universitysurgical.com/wp-content/uploads/2021/12/hipaa-e1638383751916.png", elem_id="hipaa-image")
|
117 |
+
gr.Markdown("Place basic instructions here")
|
118 |
+
|
119 |
+
with gr.Column(elem_id="interactives"):
|
120 |
+
inputs=gr.Textbox(label="Enter Text", elem_id="input-box", lines=5)
|
|
|
|
|
|
|
|
|
121 |
|
122 |
+
with gr.Row(elem_id="output-elems"):
|
123 |
+
gr.Markdown("This text is a violation: ")
|
124 |
+
outputs=gr.Textbox(label="Prediction Result", elem_id="output-box", interactive=False)
|
125 |
+
|
126 |
+
with gr.Row():
|
127 |
+
submit_button = gr.Button("Submit", elem_id="submit-button")
|
128 |
+
clear_button = gr.Button("Clear", elem_id="clear-button")
|
129 |
|
130 |
submit_button.click(predict, inputs=inputs, outputs=outputs)
|
131 |
clear_button.click(lambda: ("", ""), inputs=None, outputs=[inputs, outputs])
|