streetyogi commited on
Commit
6884878
·
1 Parent(s): e1ccc41

Update inference_server.py

Browse files
Files changed (1) hide show
  1. 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 {f"{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": str(result)}
29
  except Exception as e:
30
  logging.error("An error occured: %s", e)
31
  return {"error": str(e)}