diff --git a/local/rest_api_gcbm/README.md b/local/rest_api_gcbm/README.md index 98170e3a..025a9272 100644 --- a/local/rest_api_gcbm/README.md +++ b/local/rest_api_gcbm/README.md @@ -1,6 +1,6 @@ # GCBM REST API Setup -The simulation is currently supported on Linux/macOS. To run the GCBM simulation locally, execute the following steps: +The simulation is currently supported on Linux/macOS. To run the GCBM simulation locally, execute the following steps on `Terminal 1`: 1. Clone the `FLINT.Cloud` repository using the command: @@ -50,7 +50,7 @@ The inputs are contained in `GCBM_New_Demo_Run.zip`, present in the root of the To run the endpoints and start a new GCBM simulation : -1. Unzip `GCBM_New_Demo_Run` and open a terminal inside the folder and run the following curl commands: +1. Unzip `GCBM_New_Demo_Run` and open another `terminal 2` inside the folder and run the following `curl` commands: 2. Create a new simulation (the default title of the simulation is `simulation`; Here the title `run4` is used): ```bash diff --git a/local/rest_api_gcbm/app.py b/local/rest_api_gcbm/app.py index 1feed739..f99d6c84 100644 --- a/local/rest_api_gcbm/app.py +++ b/local/rest_api_gcbm/app.py @@ -575,9 +575,9 @@ def getTitle(): input_dir = f"{os.getcwd()}/input/{sim_title}" if not os.path.exists(f"{input_dir}"): os.makedirs(f"{input_dir}") - message = "New {sim_title} simulation started. Please move on to the next stage for uploading files at /gcbm/upload." + message = f"New {sim_title} simulation started. Please move on to the next stage for uploading files at /gcbm/upload." else: - message = "Simulation already exists with name {sim_title}. Please check the list of simulations present before proceeding with a new simulation at gcbm/list. You may also download the input and output files for this simulation at gcbm/download sending parameter title in the body." + message = f"Simulation already exists with name {sim_title}. Please check the list of simulations present before proceeding with a new simulation at gcbm/list. You may also download the input and output files for this simulation at gcbm/download sending parameter title in the body." return {"data": message}, 200