Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,10 @@ labels = [
|
|
| 21 |
|
| 22 |
class InputText(BaseModel):
|
| 23 |
text: str
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
@app.post("/predict")
|
| 26 |
def predict(input: InputText):
|
|
|
|
| 21 |
|
| 22 |
class InputText(BaseModel):
|
| 23 |
text: str
|
| 24 |
+
|
| 25 |
+
@app.get("/")
|
| 26 |
+
def root():
|
| 27 |
+
return {"message": "Help Classifier API is running"}
|
| 28 |
|
| 29 |
@app.post("/predict")
|
| 30 |
def predict(input: InputText):
|