Spaces:
Sleeping
Sleeping
Nikhil Singh
commited on
Commit
·
d82fb4a
1
Parent(s):
adc4ff3
fixed issues
Browse files
app.py
CHANGED
@@ -100,7 +100,12 @@ demo = gr.Interface(
|
|
100 |
fn=present,
|
101 |
inputs=[
|
102 |
gr.components.Textbox(label="Email Content"),
|
103 |
-
gr.components.
|
|
|
|
|
|
|
|
|
|
|
104 |
],
|
105 |
outputs=[
|
106 |
gr.components.Textbox(label="Subject"),
|
@@ -108,7 +113,7 @@ demo = gr.Interface(
|
|
108 |
gr.components.Textbox(label="To"),
|
109 |
gr.components.Textbox(label="Date"),
|
110 |
gr.components.Textbox(label="Cleaned Body"),
|
111 |
-
gr.components.
|
112 |
],
|
113 |
title="Email Info",
|
114 |
description="Enter the email content below to view its details and detected entities."
|
|
|
100 |
fn=present,
|
101 |
inputs=[
|
102 |
gr.components.Textbox(label="Email Content"),
|
103 |
+
gr.components.Textbox(
|
104 |
+
value=", ".join(labels),
|
105 |
+
label="Labels to Detect",
|
106 |
+
placeholder="Enter the entities to detect here (comma separated)",
|
107 |
+
scale=2
|
108 |
+
),
|
109 |
],
|
110 |
outputs=[
|
111 |
gr.components.Textbox(label="Subject"),
|
|
|
113 |
gr.components.Textbox(label="To"),
|
114 |
gr.components.Textbox(label="Date"),
|
115 |
gr.components.Textbox(label="Cleaned Body"),
|
116 |
+
gr.components.JSON(label="Extracted Entities")
|
117 |
],
|
118 |
title="Email Info",
|
119 |
description="Enter the email content below to view its details and detected entities."
|