Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ raw_interface = gr.Interface(
|
|
74 |
""").strip(),
|
75 |
),
|
76 |
outputs="json",
|
|
|
77 |
)
|
78 |
|
79 |
form_interface = gr.Interface(
|
@@ -101,6 +102,7 @@ form_interface = gr.Interface(
|
|
101 |
),
|
102 |
],
|
103 |
outputs="json",
|
|
|
104 |
)
|
105 |
|
106 |
file_interface = gr.Interface(
|
@@ -110,6 +112,7 @@ file_interface = gr.Interface(
|
|
110 |
file_types=[".eml"],
|
111 |
),
|
112 |
outputs="json",
|
|
|
113 |
)
|
114 |
|
115 |
with demo:
|
|
|
74 |
""").strip(),
|
75 |
),
|
76 |
outputs="json",
|
77 |
+
api_name="predict_raw_text",
|
78 |
)
|
79 |
|
80 |
form_interface = gr.Interface(
|
|
|
102 |
),
|
103 |
],
|
104 |
outputs="json",
|
105 |
+
api_name="predict_form",
|
106 |
)
|
107 |
|
108 |
file_interface = gr.Interface(
|
|
|
112 |
file_types=[".eml"],
|
113 |
),
|
114 |
outputs="json",
|
115 |
+
api_name="predict_file",
|
116 |
)
|
117 |
|
118 |
with demo:
|