Nikhil Singh commited on
Commit
d82fb4a
·
1 Parent(s): adc4ff3

fixed issues

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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.CheckboxGroup(label="Labels to Detect", choices=labels, default=labels)
 
 
 
 
 
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.Textbox(label="Extracted Entities")
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."