This is sample code demonstrating the use of Amazon Bedrock and Generative AI to implement a document comparison use case. The application is constructed with a simple streamlit frontend where users can upload 2 versions of a document and get all changes between documents listed.
File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "/Users/emanvmoh/Amazon-Bedrock-Document-Comparison-POC/app.py", line 4, in
from doc_comparer import doc_compare
File "/Users/emanvmoh/Amazon-Bedrock-Document-Comparison-POC/doc_comparer.py", line 6, in
from dotenv import load_dotenv
this could be an issue with your environments, if you are running this locally, you can also configure the environment variables directly in the code :)
hi ryan. do you know what causing this error ?
File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 541, in _run_script exec(code, module.dict) File "/Users/emanvmoh/Amazon-Bedrock-Document-Comparison-POC/app.py", line 4, in
from doc_comparer import doc_compare
File "/Users/emanvmoh/Amazon-Bedrock-Document-Comparison-POC/doc_comparer.py", line 6, in
from dotenv import load_dotenv
even though i installed python-dotenv.