Spaces:
Sleeping
Sleeping
Add stop buttons
Browse files
app.py
CHANGED
@@ -184,6 +184,7 @@ iface_category = gr.Interface(
|
|
184 |
inputs=gr.Textbox(lines=10, placeholder="Enter Email Content Here..."),
|
185 |
outputs="text",
|
186 |
title="Email Category Classifier",
|
|
|
187 |
description="This model classifies email text into one of five categories: Urgent Requests, Project Updates, Client Communications, Meeting Coordination, Internal Announcements."
|
188 |
)
|
189 |
|
@@ -192,6 +193,7 @@ iface_sentiment = gr.Interface(
|
|
192 |
fn=classify_sentiment,
|
193 |
inputs=gr.Textbox(lines=5, placeholder="Enter Email Text Here..."),
|
194 |
outputs=gr.Textbox(label="Sentiment Analysis"),
|
|
|
195 |
title="Sentiment Analysis"
|
196 |
)
|
197 |
|
@@ -200,6 +202,7 @@ iface_summary = gr.Interface(
|
|
200 |
fn=generate_summary,
|
201 |
inputs=[gr.Textbox(lines=5, placeholder="Enter Email Text Here...")],
|
202 |
outputs=gr.Textbox(label="Generated Summary"),
|
|
|
203 |
title="Summary Generation"
|
204 |
)
|
205 |
|
@@ -211,6 +214,7 @@ iface_ner = gr.Interface(
|
|
211 |
gr.Dataframe(label="Transformer Entity Recognition"),
|
212 |
gr.Textbox(label="Extracted Dates")
|
213 |
],
|
|
|
214 |
title="NER Analysis",
|
215 |
description="Performs Named Entity Recognition using spaCy and Transformer models."
|
216 |
)
|
@@ -219,6 +223,7 @@ iface_response = gr.Interface(
|
|
219 |
inputs=gr.Textbox(lines=10, placeholder="Enter the email prompt..."),
|
220 |
outputs=gr.Textbox(label="Generated Email Response"),
|
221 |
title="Email Response Generator",
|
|
|
222 |
description="Generate email responses using Llama-2 model."
|
223 |
)
|
224 |
|
|
|
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),
|
188 |
description="This model classifies email text into one of five categories: Urgent Requests, Project Updates, Client Communications, Meeting Coordination, Internal Announcements."
|
189 |
)
|
190 |
|
|
|
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"
|
198 |
)
|
199 |
|
|
|
202 |
fn=generate_summary,
|
203 |
inputs=[gr.Textbox(lines=5, placeholder="Enter Email Text Here...")],
|
204 |
outputs=gr.Textbox(label="Generated Summary"),
|
205 |
+
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
206 |
title="Summary Generation"
|
207 |
)
|
208 |
|
|
|
214 |
gr.Dataframe(label="Transformer Entity Recognition"),
|
215 |
gr.Textbox(label="Extracted Dates")
|
216 |
],
|
217 |
+
stop_btn=gr.Button("Stop", variant="stop", visible=True),
|
218 |
title="NER Analysis",
|
219 |
description="Performs Named Entity Recognition using spaCy and Transformer models."
|
220 |
)
|
|
|
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),
|
227 |
description="Generate email responses using Llama-2 model."
|
228 |
)
|
229 |
|