lib/boxcars/boxcar/calculator.rb in boxcars-0.1.6 vs lib/boxcars/boxcar/calculator.rb in boxcars-0.1.7
- old
+ new
@@ -38,10 +38,10 @@
# @param inputs [Hash] The inputs to the boxcar.
# @return [Hash] The outputs from the boxcar.
def call(inputs:)
t = predict(question: inputs[input_key], stop: ["```output"]).strip
answer = get_answer(t)
- puts answer.colorize(:magenta)
+ Boxcars.info answer, :magenta
{ output_key => answer }
end
private