Spaces:
Running
Running
Commit
·
7040d1c
1
Parent(s):
9716ed4
updated the model labels and api code
Browse files
app.py
CHANGED
@@ -16,3 +16,6 @@ async def predict(issue: str):
|
|
16 |
"priority 2": str(predictions[1]),
|
17 |
"Label":label
|
18 |
}
|
|
|
|
|
|
|
|
16 |
"priority 2": str(predictions[1]),
|
17 |
"Label":label
|
18 |
}
|
19 |
+
@app.get("/")
|
20 |
+
async def root():
|
21 |
+
return {"message": "Welcome to the API. Use /predict to get predictions."}
|