changed naming of messaging methods
Browse files- fixed_reply.py +2 -2
- run.py +2 -2
fixed_reply.py
CHANGED
@@ -44,9 +44,9 @@ class FixedReplyFlow(AtomicFlow):
|
|
44 |
:param input_message: The input message
|
45 |
:type input_message: FlowMessage
|
46 |
"""
|
47 |
-
reply = self.
|
48 |
input_message=input_message,
|
49 |
response={"fixed_reply": self.flow_config["fixed_reply"]}
|
50 |
)
|
51 |
-
self.
|
52 |
|
|
|
44 |
:param input_message: The input message
|
45 |
:type input_message: FlowMessage
|
46 |
"""
|
47 |
+
reply = self.package_output_message(
|
48 |
input_message=input_message,
|
49 |
response={"fixed_reply": self.flow_config["fixed_reply"]}
|
50 |
)
|
51 |
+
self.send_message(reply, is_reply = True)
|
52 |
|
run.py
CHANGED
@@ -77,10 +77,10 @@ if __name__ == "__main__":
|
|
77 |
)
|
78 |
|
79 |
#option2: use the proxy_flow
|
80 |
-
#input_message = proxy_flow.
|
81 |
|
82 |
#7. ~~~ Run inference ~~~
|
83 |
-
future = proxy_flow.
|
84 |
|
85 |
#uncomment this line if you would like to get the full message back
|
86 |
#reply_message = future.get_message()
|
|
|
77 |
)
|
78 |
|
79 |
#option2: use the proxy_flow
|
80 |
+
#input_message = proxy_flow.package_input_message(data = data)
|
81 |
|
82 |
#7. ~~~ Run inference ~~~
|
83 |
+
future = proxy_flow.get_reply_future(input_message)
|
84 |
|
85 |
#uncomment this line if you would like to get the full message back
|
86 |
#reply_message = future.get_message()
|