Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def predict(text):
|
|
75 |
return f"Error during prediction: {e}"
|
76 |
ui_css = """
|
77 |
#body {
|
78 |
-
height:
|
79 |
width: 500px;
|
80 |
background-color: cyan;
|
81 |
border-radius: 15px;
|
@@ -89,8 +89,8 @@ ui_css = """
|
|
89 |
margin-left: 8px;
|
90 |
margin-right: 8px;
|
91 |
overflow-y: scroll;
|
92 |
-
height:
|
93 |
-
max-height:
|
94 |
}
|
95 |
#output-elems {
|
96 |
width: 480px;
|
@@ -101,7 +101,7 @@ ui_css = """
|
|
101 |
}
|
102 |
#submit-button, #clear-button {
|
103 |
color: white;
|
104 |
-
height:
|
105 |
width: 60px;
|
106 |
margin: 10px;
|
107 |
border-radius: 5px;
|
@@ -113,15 +113,19 @@ ui_css = """
|
|
113 |
#clear-button {
|
114 |
background-color: grey;
|
115 |
}
|
|
|
|
|
|
|
|
|
116 |
"""
|
117 |
# Set up the Gradio interface
|
118 |
with gr.Blocks(css=ui_css) as demo:
|
119 |
with gr.Column(elem_id="body"):
|
120 |
with gr.Row(elem_id="header"):
|
121 |
with gr.Row(elem_id="hipaa-image"):
|
122 |
-
gr.Image(value="
|
123 |
with gr.Row():
|
124 |
-
gr.Markdown("Enter text below to determine if it is a HIPAA violation. Smaller inputs may be less accurate.")
|
125 |
|
126 |
with gr.Row(elem_id="interactives"):
|
127 |
inputs=gr.Textbox(label="Enter Input Text Here", elem_id="input-box", lines=5)
|
|
|
75 |
return f"Error during prediction: {e}"
|
76 |
ui_css = """
|
77 |
#body {
|
78 |
+
height: 700px;
|
79 |
width: 500px;
|
80 |
background-color: cyan;
|
81 |
border-radius: 15px;
|
|
|
89 |
margin-left: 8px;
|
90 |
margin-right: 8px;
|
91 |
overflow-y: scroll;
|
92 |
+
height: 150px;
|
93 |
+
max-height: 150px;
|
94 |
}
|
95 |
#output-elems {
|
96 |
width: 480px;
|
|
|
101 |
}
|
102 |
#submit-button, #clear-button {
|
103 |
color: white;
|
104 |
+
height: 45px;
|
105 |
width: 60px;
|
106 |
margin: 10px;
|
107 |
border-radius: 5px;
|
|
|
113 |
#clear-button {
|
114 |
background-color: grey;
|
115 |
}
|
116 |
+
#addinfo {
|
117 |
+
font-size: 16;
|
118 |
+
justify-self: center;
|
119 |
+
}
|
120 |
"""
|
121 |
# Set up the Gradio interface
|
122 |
with gr.Blocks(css=ui_css) as demo:
|
123 |
with gr.Column(elem_id="body"):
|
124 |
with gr.Row(elem_id="header"):
|
125 |
with gr.Row(elem_id="hipaa-image"):
|
126 |
+
gr.Image(value="hipaa-e1638383751916.png")
|
127 |
with gr.Row():
|
128 |
+
gr.Markdown("Enter text below to determine if it is a HIPAA violation. Smaller inputs may be less accurate.", elem_id="addinfo")
|
129 |
|
130 |
with gr.Row(elem_id="interactives"):
|
131 |
inputs=gr.Textbox(label="Enter Input Text Here", elem_id="input-box", lines=5)
|