minor edits in run.py
Browse files12375 unmodified lines798081828384858623 unmodified lines110111112113114import osimport 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#option1: use the FlowMessage classinput_message = FlowMessage(23 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serve_utils.delete_served_flow(cl, "ChatWithDemonstrationFlowModule")1234575 unmodified lines818283848586878823 unmodified lines112113114115116"""A simple script to run a Flow that can be used for development and debugging."""import osimport hydra75 unmodified lines)#6. ~~~ Get the data ~~~data = {"id": 0}#option1: use the FlowMessage classinput_message = FlowMessage(23 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serve_utils.delete_served_flow(cl, "FlowModule")
run.py+5-3