Customizable questionsets and web app - #2
Open
suung wants to merge 9 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Integrate Question Set Functionality and Enhance Analysis Workflow
Summary
This pull request introduces significant enhancements to the Climate+Tech Sustainability Report Analytics App. The key changes include the integration of question set functionality, improved directory management, and enhanced analysis workflow. These updates aim to provide a more flexible and robust tool for sustainability report analysis.
Changes
Question Set Integration:
question_setsdirectory to store YAML files defining different question sets.code/app.pyto load and use the selected question set during analysis.Directory Management:
input,output,data,question_sets) if they do not exist.code/app.pyto dynamically use directories based on the selected question set.Enhanced Analysis Workflow:
code/app.pyto include the relative path toapp.pywhen running the analysis script.code/web.py.Environment Variable Management:
.envfile support to manage environment variables securely..gitignoreto exclude sensitive directories and files (input/,output/,data/,.env).Code Refactoring and Cleanup:
code/document.py,code/reader.py, andcode/user_qa.pyto remove hardcoded values and use environment variables.code/utils.pyfor loading configurations, structuring data, and generating CSV files.code/config.pyto manage configuration loading.Documentation and Comments:
Files Added/Modified
.env.sample.gitignorecode/app.pycode/cfg.pycode/config.pycode/document.pycode/reader.pycode/user_qa.pycode/utils.pycode/web.pyquestion_sets/default.yamlHow to Test
.envfile based on the.env.sampleand add the necessary environment variables.streamlit run code/web.py.Additional Notes
.envfile for the analysis to work correctly.@pr (Diff with Main Branch)