Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,6 +79,7 @@ def root(request: Request):
|
|
| 79 |
async def predict_api(request: Request):
|
| 80 |
data = await request.json()
|
| 81 |
text = data.get("text")
|
|
|
|
| 82 |
if not text:
|
| 83 |
return {"error": "No text provided", "classification": "null"}
|
| 84 |
|
|
|
|
| 79 |
async def predict_api(request: Request):
|
| 80 |
data = await request.json()
|
| 81 |
text = data.get("text")
|
| 82 |
+
print("request date", data);
|
| 83 |
if not text:
|
| 84 |
return {"error": "No text provided", "classification": "null"}
|
| 85 |
|