minor edits in run.py
Browse files
run.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
import hydra
|
|
@@ -79,8 +81,8 @@ if __name__ == "__main__":
|
|
| 79 |
)
|
| 80 |
|
| 81 |
#6. ~~~ Get the data ~~~
|
| 82 |
-
data = {"id": 0}
|
| 83 |
-
|
| 84 |
|
| 85 |
#option1: use the FlowMessage class
|
| 86 |
input_message = FlowMessage(
|
|
@@ -110,5 +112,5 @@ if __name__ == "__main__":
|
|
| 110 |
|
| 111 |
|
| 112 |
#9. ~~~~~Optional: Unserve Flow~~~~~~
|
| 113 |
-
# serve_utils.delete_served_flow(cl, "
|
| 114 |
|
|
|
|
| 1 |
+
"""A simple script to run a Flow that can be used for development and debugging."""
|
| 2 |
+
|
| 3 |
import os
|
| 4 |
|
| 5 |
import hydra
|
|
|
|
| 81 |
)
|
| 82 |
|
| 83 |
#6. ~~~ Get the data ~~~
|
| 84 |
+
data = {"id": 0}
|
| 85 |
+
|
| 86 |
|
| 87 |
#option1: use the FlowMessage class
|
| 88 |
input_message = FlowMessage(
|
|
|
|
| 112 |
|
| 113 |
|
| 114 |
#9. ~~~~~Optional: Unserve Flow~~~~~~
|
| 115 |
+
# serve_utils.delete_served_flow(cl, "FlowModule")
|
| 116 |
|