minor edits in run.py
Browse files1234575 unmodified lines8182838283848586878823 unmodified lines112113114113115116"""A simple script to run a Flow that can be used for development and debugging."""
import os
import hydra75 unmodified lines ) #6. ~~~ Get the data ~~~ data = {"id": 0} # This can be a list of samples # data = {"id": 0, "question": "Who was the NBA champion in 2023?"} # This can be a list of samples data = {"id": 0} #option1: use the FlowMessage class input_message = FlowMessage(23 unmodified lines #9. ~~~~~Optional: Unserve Flow~~~~~~ # serve_utils.delete_served_flow(cl, "ChatWithDemonstrationFlowModule") # serve_utils.delete_served_flow(cl, "FlowModule")
run.py+5-3