BraydenAC commited on
Commit
cf3f051
·
verified ·
1 Parent(s): 8189226

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -75,7 +75,7 @@ def predict(text):
75
  return f"Error during prediction: {e}"
76
  ui_css = """
77
  #body {
78
- height: 600px;
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: 100px;
93
- max-height: 100px;
94
  }
95
  #output-elems {
96
  width: 480px;
@@ -101,7 +101,7 @@ ui_css = """
101
  }
102
  #submit-button, #clear-button {
103
  color: white;
104
- height: 35px;
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="https://universitysurgical.com/wp-content/uploads/2021/12/hipaa-e1638383751916.png")
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)