streetyogi commited on
Commit
077a630
·
1 Parent(s): 270d6d5

Update inference_server.py

Browse files
Files changed (1) hide show
  1. inference_server.py +1 -1
inference_server.py CHANGED
@@ -23,7 +23,7 @@ def predict(input_text: str):
23
  # Make a prediction on the new input string
24
  prediction = model.predict([input_text])[0]
25
 
26
- return {"prediction": prediction}
27
 
28
  # Here you can do things such as load your models
29
 
 
23
  # Make a prediction on the new input string
24
  prediction = model.predict([input_text])[0]
25
 
26
+ return {"prediction": prediction, "num_strings": len(strings)}
27
 
28
  # Here you can do things such as load your models
29