Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ if st.button("Predict Email"):
|
|
70 |
# FastAPI app to handle GET requests
|
71 |
app = FastAPI()
|
72 |
|
73 |
-
@app.get("predict
|
74 |
def predict_spam(email: str):
|
75 |
"""
|
76 |
This endpoint predicts whether the email is Spam or Ham.
|
|
|
70 |
# FastAPI app to handle GET requests
|
71 |
app = FastAPI()
|
72 |
|
73 |
+
@app.get("/predict")
|
74 |
def predict_spam(email: str):
|
75 |
"""
|
76 |
This endpoint predicts whether the email is Spam or Ham.
|