Commit c4a4ee0d authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix demo hmi

parent 45b4a28b
Pipeline #377829 passed with stages
in 1 minute and 2 seconds
......@@ -9,7 +9,7 @@
The credentials file named hmi_cred.json must be located in the folder configs.
The configuration file named hmi.json must also be located in the same folder
"""
ml.setup_logger("hmi")
#ml.setup_logger("hmi")
config_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "configs"))
cred_path = os.path.join(config_path, "hmi_cred.json")
with open(cred_path) as file:
......@@ -88,7 +88,8 @@ def prepare_service_request():
name="my_felling_job")
felling_job = ml.build_feature(feature=feature_config_json)
felling_job_json = felling_job.to_json()
print("[S³I]: A felling job is generated with the job id: {}".format(felling_job_json["identifier"]))
job_id = input("[S³I]: Please enter a id for your felling job: ")
felling_job_json["identifier"] = job_id
parameter = {"job": felling_job_json}
elif method == "queryJobStatus":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment