Spaces:
Runtime error
Runtime error
Download pm4py/examples/bpmn_js_visualization.py from linpershey/process_mining: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/examples/bpmn_js_visualization.py
- Command line
-
hf download hf://spaces/linpershey/process_mining/pm4py/examples/bpmn_js_visualization.py
-
curl -L -o bpmn_js_visualization.py https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/examples/bpmn_js_visualization.py
335 Bytes
| import pm4py | |
| import importlib.util | |
| def execute_script(): | |
| log = pm4py.read_xes("../tests/input_data/running-example.xes") | |
| bpmn_model = pm4py.discover_bpmn_inductive(log) | |
| if importlib.util.find_spec("graphviz"): | |
| pm4py.view_bpmn(bpmn_model, variant_str="dagrejs") | |
| if __name__ == "__main__": | |
| execute_script() | |