Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,12 @@ import re
|
|
7 |
app = FastAPI(
|
8 |
title="Email Classification API",
|
9 |
version="1.0.0",
|
10 |
-
description="Classifies emails and masks PII/PCI information."
|
|
|
|
|
11 |
)
|
12 |
|
|
|
13 |
# Load the model once when the app starts
|
14 |
model = joblib.load("model.joblib")
|
15 |
|
|
|
7 |
app = FastAPI(
|
8 |
title="Email Classification API",
|
9 |
version="1.0.0",
|
10 |
+
description="Classifies emails and masks PII/PCI information.",
|
11 |
+
docs_url="/swagger", # Try custom path
|
12 |
+
redoc_url="/redoc" # Optional: enable ReDoc
|
13 |
)
|
14 |
|
15 |
+
|
16 |
# Load the model once when the app starts
|
17 |
model = joblib.load("model.joblib")
|
18 |
|