Spaces:
Sleeping
Sleeping
Nikhil Singh
commited on
Commit
·
2e363f7
1
Parent(s):
28ca0f2
fixed errors
Browse files
app.py
CHANGED
|
@@ -34,20 +34,18 @@ def present(email_content):
|
|
| 34 |
str(email_info["Attachments"]) # Convert list to string for display
|
| 35 |
]
|
| 36 |
|
| 37 |
-
outputs = [
|
| 38 |
-
gr.outputs.Textbox(label="Subject"),
|
| 39 |
-
gr.outputs.Textbox(label="From"),
|
| 40 |
-
gr.outputs.Textbox(label="To"),
|
| 41 |
-
gr.outputs.Textbox(label="Date"),
|
| 42 |
-
gr.outputs.Textbox(label="Message ID"),
|
| 43 |
-
gr.outputs.Textbox(label="Headers"),
|
| 44 |
-
gr.outputs.Textbox(label="Attachments")
|
| 45 |
-
]
|
| 46 |
-
|
| 47 |
demo = gr.Interface(
|
| 48 |
fn=present,
|
| 49 |
inputs="text",
|
| 50 |
-
outputs=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
title="Email Info",
|
| 52 |
description="Enter the email content below to view its details."
|
| 53 |
)
|
|
|
|
| 34 |
str(email_info["Attachments"]) # Convert list to string for display
|
| 35 |
]
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
demo = gr.Interface(
|
| 38 |
fn=present,
|
| 39 |
inputs="text",
|
| 40 |
+
outputs=[
|
| 41 |
+
gr.components.Textbox(label="Subject"),
|
| 42 |
+
gr.components.Textbox(label="From"),
|
| 43 |
+
gr.components.Textbox(label="To"),
|
| 44 |
+
gr.components.Textbox(label="Date"),
|
| 45 |
+
gr.components.Textbox(label="Message ID"),
|
| 46 |
+
gr.components.Textbox(label="Headers"),
|
| 47 |
+
gr.components.Textbox(label="Attachments")
|
| 48 |
+
],
|
| 49 |
title="Email Info",
|
| 50 |
description="Enter the email content below to view its details."
|
| 51 |
)
|