Spaces:
Running
Running
pragnakalp
commited on
Commit
•
156b1d4
1
Parent(s):
b94b890
change in interface
Browse files
app.py
CHANGED
@@ -129,31 +129,40 @@ def save_data_and_sendmail(article,output):
|
|
129 |
except Exception as e:
|
130 |
return "Error while sending mail" + str(e)
|
131 |
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
<p style='text-align: center;'>Feel free to give us your <a href="https://www.pragnakalp.com/contact/"> feedback </a> on this NER demo.
|
142 |
For all your Named Entity Recognition related requirements, we are here to help you.<br />
|
143 |
Email us your requirement at <a href="mailto:letstalk@pragnakalp.com"> letstalk@pragnakalp.com </a>.
|
144 |
And don't forget to check out more interesting <a href="https://www.pragnakalp.com/services/natural-language-processing-services/">NLP services</a> we are offering.<br/>
|
145 |
<b>Developed by</b> : <a href="https://www.pragnakalp.com" target="_blank">Pragnakalp Techlabs </a></p>
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
demo.launch()
|
150 |
-
|
151 |
-
# demo = gr.Interface(
|
152 |
-
# generate_emotion,
|
153 |
-
# inputs,
|
154 |
-
# outputs,
|
155 |
-
# title="Entity Recognition For Input Text",
|
156 |
-
# description="Feel free to give your feedback",
|
157 |
-
# css=".gradio-container {background-color: lightgray} #inp_div {background-color: [#7](https://www1.example.com/issues/7)FB3D5;"
|
158 |
-
# )
|
159 |
-
# demo.launch()
|
|
|
129 |
except Exception as e:
|
130 |
return "Error while sending mail" + str(e)
|
131 |
|
132 |
+
input=gr.Textbox(lines=5, value=input_value, label="Input Text")
|
133 |
+
output = gr.Dataframe(row_count = (2, "dynamic"), col_count=(2, "fixed"), headers=["Entities Found","Entity Types"])
|
134 |
+
# with gr.Blocks(css=".gradio-container {background-color: lightgray}") as demo:
|
135 |
+
# gr.Markdown("<h1 style='text-align: center;'>"+ "Named Entity Recognition Using BERT" + "</h1><br/><br/>")
|
136 |
+
# with gr.Row():
|
137 |
+
# with gr.Column():
|
138 |
+
# input=gr.Textbox(lines=5, value=input_value, label="Input Text")
|
139 |
+
# sub_btn = gr.Button("Submit")
|
140 |
+
# output = gr.Dataframe(row_count = (3, "dynamic"), col_count=(2, "fixed"), headers=["Entities Found","Entity Types"])
|
141 |
+
# gr.Markdown(
|
142 |
+
# """
|
143 |
+
# <p style='text-align: center;'>Feel free to give us your <a href="https://www.pragnakalp.com/contact/"> feedback </a> on this NER demo.
|
144 |
+
# For all your Named Entity Recognition related requirements, we are here to help you.<br />
|
145 |
+
# Email us your requirement at <a href="mailto:letstalk@pragnakalp.com"> letstalk@pragnakalp.com </a>.
|
146 |
+
# And don't forget to check out more interesting <a href="https://www.pragnakalp.com/services/natural-language-processing-services/">NLP services</a> we are offering.<br/>
|
147 |
+
# <b>Developed by</b> : <a href="https://www.pragnakalp.com" target="_blank">Pragnakalp Techlabs </a></p>
|
148 |
+
# """)
|
149 |
+
|
150 |
+
# event = sub_btn.click(generate_emotion, inputs=input, outputs=output)
|
151 |
+
# demo.launch()
|
152 |
+
|
153 |
+
demo = gr.Interface(
|
154 |
+
generate_emotion,
|
155 |
+
input,
|
156 |
+
output,
|
157 |
+
title="Entity Recognition For Input Text",
|
158 |
+
description="Feel free to give your feedback",
|
159 |
+
css=".gradio-container {background-color: lightgray} #inp_div {background-color: [#7](https://www1.example.com/issues/7)FB3D5;",
|
160 |
+
article="""
|
161 |
<p style='text-align: center;'>Feel free to give us your <a href="https://www.pragnakalp.com/contact/"> feedback </a> on this NER demo.
|
162 |
For all your Named Entity Recognition related requirements, we are here to help you.<br />
|
163 |
Email us your requirement at <a href="mailto:letstalk@pragnakalp.com"> letstalk@pragnakalp.com </a>.
|
164 |
And don't forget to check out more interesting <a href="https://www.pragnakalp.com/services/natural-language-processing-services/">NLP services</a> we are offering.<br/>
|
165 |
<b>Developed by</b> : <a href="https://www.pragnakalp.com" target="_blank">Pragnakalp Techlabs </a></p>
|
166 |
+
"""
|
167 |
+
)
|
168 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|