pragnakalp commited on
Commit
07775da
1 Parent(s): be1022c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -141,8 +141,8 @@ def save_data_and_sendmail(article,output):
141
  except Exception as e:
142
  return "Error while sending mail" + str(e)
143
 
144
- input=gr.Textbox(lines=3, value=input_value, label="Input Text")
145
- output = gr.Dataframe(row_count = (2, "dynamic"), col_count=(2, "fixed"), headers=["Entities Found","Entity Types"], lable="Here is the result")
146
  # with gr.Blocks(css=".gradio-container {background-color: lightgray}") as demo:
147
  # gr.Markdown("<h1 style='text-align: center;'>"+ "Named Entity Recognition Using BERT" + "</h1><br/><br/>")
148
  # with gr.Row():
@@ -167,7 +167,7 @@ demo = gr.Interface(
167
  input,
168
  output,
169
  title="Named Entity Recognition Using BERT",
170
- css=".gradio-container {background-color: lightgray}",
171
  article="""Feel free to give us your [feedback](https://www.pragnakalp.com/contact/) on this NER demo. For all your Named Entity Recognition related
172
  requirements, we are here to help you. Email us your requirement at [[email protected]]("mailto:[email protected]").
173
  And don't forget to check out more interesting [NLP services](https://www.pragnakalp.com/services/natural-language-processing-services/) we are offering.
 
141
  except Exception as e:
142
  return "Error while sending mail" + str(e)
143
 
144
+ input=gr.Textbox(lines=3, value=input_value, label="Input Text",elem_id="inp_div")
145
+ output = gr.Dataframe(row_count = (2, "dynamic"), col_count=(2, "fixed"), headers=["Entities Found","Entity Types"], lable="Here is the result",elem_id="inp_div")
146
  # with gr.Blocks(css=".gradio-container {background-color: lightgray}") as demo:
147
  # gr.Markdown("<h1 style='text-align: center;'>"+ "Named Entity Recognition Using BERT" + "</h1><br/><br/>")
148
  # with gr.Row():
 
167
  input,
168
  output,
169
  title="Named Entity Recognition Using BERT",
170
+ css=".gradio-container {background-color: lightgray} #inp_div {background-color: #7FB3D5;",
171
  article="""Feel free to give us your [feedback](https://www.pragnakalp.com/contact/) on this NER demo. For all your Named Entity Recognition related
172
  requirements, we are here to help you. Email us your requirement at [[email protected]]("mailto:[email protected]").
173
  And don't forget to check out more interesting [NLP services](https://www.pragnakalp.com/services/natural-language-processing-services/) we are offering.