Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,6 +92,7 @@ class TextIn(BaseModel):
|
|
| 92 |
@app.post("/api/predict")
|
| 93 |
def predict(data: TextIn):
|
| 94 |
text = data.text
|
|
|
|
| 95 |
try:
|
| 96 |
lang = detect(text)
|
| 97 |
except:
|
|
|
|
| 92 |
@app.post("/api/predict")
|
| 93 |
def predict(data: TextIn):
|
| 94 |
text = data.text
|
| 95 |
+
print(f"Input message: {text}")
|
| 96 |
try:
|
| 97 |
lang = detect(text)
|
| 98 |
except:
|