Spaces:
Sleeping
Sleeping
Commit
·
32d2b1b
1
Parent(s):
3155050
synch
Browse files
main.py
CHANGED
@@ -16,6 +16,7 @@ async def root():
|
|
16 |
@app.get("/predict")
|
17 |
async def predict_personality_get(text: str):
|
18 |
try:
|
|
|
19 |
predictions = predict_personality(text)
|
20 |
return {"predictions": predictions}
|
21 |
except NameError:
|
|
|
16 |
@app.get("/predict")
|
17 |
async def predict_personality_get(text: str):
|
18 |
try:
|
19 |
+
print("API get predict endpoint")
|
20 |
predictions = predict_personality(text)
|
21 |
return {"predictions": predictions}
|
22 |
except NameError:
|