The code has been split into several files, which are still located in the ./ directory. The files include
climate_functions.py
economic_functions.py
environmental_functions.py
geo_functions.py.
climsight.py now includes 4 additional imports from *_functions, such as: _from geofunctions import (...).
The skipLLMCall flag has been introduced for debugging purposes.
_skip_llmcall = 'skipLLMCall' in sys.argv
By using this flag as follows: streamlit run climsight.py skipLLMCall, the call to ChatGPT is omitted.
A minor modification was made to extract_climate_data by adding "_" to hist and future in the function's body, as Streamlit is particular about the use of underscores.
This PR is not very small, but it was challenging to break down the changes further. The next steps will involve moving everything to the src directory and re-configuring Docker.
The code has been split into several files, which are still located in the ./ directory. The files include
climsight.py now includes 4 additional imports from *_functions, such as: _from geofunctions import (...).
The skipLLMCall flag has been introduced for debugging purposes. _skip_llmcall = 'skipLLMCall' in sys.argv By using this flag as follows: streamlit run climsight.py skipLLMCall, the call to ChatGPT is omitted.
A minor modification was made to extract_climate_data by adding "_" to hist and future in the function's body, as Streamlit is particular about the use of underscores.
This PR is not very small, but it was challenging to break down the changes further. The next steps will involve moving everything to the src directory and re-configuring Docker.