Spaces:
Sleeping
Sleeping
More JSON fixes
Browse files
main.py
CHANGED
@@ -41,7 +41,7 @@ def predict(input):
|
|
41 |
|
42 |
@app.post("/predict")
|
43 |
def get_sentiment(data: TextInput):
|
44 |
-
return {predict(data.text)}
|
45 |
|
46 |
if __name__ == "__main__":
|
47 |
import uvicorn
|
|
|
41 |
|
42 |
@app.post("/predict")
|
43 |
def get_sentiment(data: TextInput):
|
44 |
+
return {"predictions": predict(data.text)}
|
45 |
|
46 |
if __name__ == "__main__":
|
47 |
import uvicorn
|