Spaces:
Sleeping
Sleeping
Add input labels
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ def classify_email(email):
|
|
181 |
|
182 |
iface_category = gr.Interface(
|
183 |
fn=classify_email,
|
184 |
-
inputs=gr.Textbox(lines=10, placeholder="Enter Email Content Here..."),
|
185 |
outputs="text",
|
186 |
title="Email Category Classifier",
|
187 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
@@ -191,7 +191,7 @@ iface_category = gr.Interface(
|
|
191 |
|
192 |
iface_sentiment = gr.Interface(
|
193 |
fn=classify_sentiment,
|
194 |
-
inputs=gr.Textbox(lines=5, placeholder="Enter Email Text Here..."),
|
195 |
outputs=gr.Textbox(label="Sentiment Analysis"),
|
196 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
197 |
title="Sentiment Analysis"
|
@@ -208,7 +208,7 @@ iface_summary = gr.Interface(
|
|
208 |
|
209 |
iface_ner = gr.Interface(
|
210 |
fn=display_entities,
|
211 |
-
inputs=gr.Textbox(lines=5, placeholder="Enter Email Text Here..."),
|
212 |
outputs=[
|
213 |
gr.Dataframe(label="spaCy Entity Recognition"),
|
214 |
gr.Dataframe(label="Transformer Entity Recognition"),
|
@@ -220,7 +220,7 @@ iface_ner = gr.Interface(
|
|
220 |
)
|
221 |
iface_response = gr.Interface(
|
222 |
fn=generate_email_response,
|
223 |
-
inputs=gr.Textbox(lines=10, placeholder="Enter the email prompt..."),
|
224 |
outputs=gr.Textbox(label="Generated Email Response"),
|
225 |
title="Email Response Generator",
|
226 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
|
|
181 |
|
182 |
iface_category = gr.Interface(
|
183 |
fn=classify_email,
|
184 |
+
inputs=gr.Textbox(label="Email",lines=10, placeholder="Enter Email Content Here..."),
|
185 |
outputs="text",
|
186 |
title="Email Category Classifier",
|
187 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
|
|
191 |
|
192 |
iface_sentiment = gr.Interface(
|
193 |
fn=classify_sentiment,
|
194 |
+
inputs=gr.Textbox(label="Email", lines=5, placeholder="Enter Email Text Here..."),
|
195 |
outputs=gr.Textbox(label="Sentiment Analysis"),
|
196 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
197 |
title="Sentiment Analysis"
|
|
|
208 |
|
209 |
iface_ner = gr.Interface(
|
210 |
fn=display_entities,
|
211 |
+
inputs=gr.Textbox(label="Email", lines=5, placeholder="Enter Email Text Here..."),
|
212 |
outputs=[
|
213 |
gr.Dataframe(label="spaCy Entity Recognition"),
|
214 |
gr.Dataframe(label="Transformer Entity Recognition"),
|
|
|
220 |
)
|
221 |
iface_response = gr.Interface(
|
222 |
fn=generate_email_response,
|
223 |
+
inputs=gr.Textbox(label="Email", lines=10, placeholder="Enter the email prompt..."),
|
224 |
outputs=gr.Textbox(label="Generated Email Response"),
|
225 |
title="Email Response Generator",
|
226 |
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|