Spaces:
Runtime error
Runtime error
streetyogi
commited on
Commit
·
0e3f8e5
1
Parent(s):
6884878
Update inference_server.py
Browse files- inference_server.py +1 -1
inference_server.py
CHANGED
@@ -25,7 +25,7 @@ def read_root(input_text):
|
|
25 |
try:
|
26 |
result = predict(input_text)
|
27 |
logging.info("Prediction made: %s", result)
|
28 |
-
return {"result":
|
29 |
except Exception as e:
|
30 |
logging.error("An error occured: %s", e)
|
31 |
return {"error": str(e)}
|
|
|
25 |
try:
|
26 |
result = predict(input_text)
|
27 |
logging.info("Prediction made: %s", result)
|
28 |
+
return {"result": 1}
|
29 |
except Exception as e:
|
30 |
logging.error("An error occured: %s", e)
|
31 |
return {"error": str(e)}
|