Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,9 @@ def index():
|
|
| 18 |
def predict():
|
| 19 |
incoming = request.get_json()
|
| 20 |
print(incoming)
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
|
| 23 |
if __name__ == '__main__':
|
| 24 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
|
| 18 |
def predict():
|
| 19 |
incoming = request.get_json()
|
| 20 |
print(incoming)
|
| 21 |
+
prediction = classifier(incoming["text"])[0]
|
| 22 |
+
print(prediction)
|
| 23 |
+
return prediction
|
| 24 |
|
| 25 |
if __name__ == '__main__':
|
| 26 |
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|