apt update
apt upgrade
shutdown -r now
apt install git python3-pip
pip install streamlit
git clone https://github.com/iaanimashaun/DED_Detector.git
cd DED_Detector
pip install -r requirements.txt
streamlit run app.py
i cant see nothing here only static data, then
cd ded-detector_demo
pip install -r requirements.txt
streamlit run app.py
i upload same image
and show me this error
DefaultCredentialsError: File ded-detector-4dcd64335a30.json was not found.
Traceback:
File "/usr/local/lib/python3.8/dist-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)
File "/root/DED_Detector/ded-detector_demo/app.py", line 119, in <module>
session_state.image, session_state.pred_class, session_state.pred_conf = make_prediction(session_state.uploaded_image, model=MODEL, class_names=CLASSES)
File "/usr/local/lib/python3.8/dist-packages/streamlit/caching.py", line 604, in wrapped_func
return get_or_create_cached_value()
File "/usr/local/lib/python3.8/dist-packages/streamlit/caching.py", line 588, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/root/DED_Detector/ded-detector_demo/app.py", line 56, in make_prediction
preds = predict_json(project=PROJECT,
File "/root/DED_Detector/ded-detector_demo/utils.py", line 57, in predict_json
ml_resource = googleapiclient.discovery.build(
File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/googleapiclient/discovery.py", line 278, in build
service = build_from_document(
File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_helpers.py", line 134, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/googleapiclient/discovery.py", line 527, in build_from_document
credentials = _auth.default_credentials(
File "/usr/local/lib/python3.8/dist-packages/googleapiclient/_auth.py", line 54, in default_credentials
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id)
File "/usr/local/lib/python3.8/dist-packages/google/auth/_default.py", line 454, in default
credentials, project_id = checker()
File "/usr/local/lib/python3.8/dist-packages/google/auth/_default.py", line 221, in _get_explicit_environ_credentials
credentials, project_id = load_credentials_from_file(
File "/usr/local/lib/python3.8/dist-packages/google/auth/_default.py", line 107, in load_credentials_from_file
raise exceptions.DefaultCredentialsError(
i cant see nothing here only static data, then
i upload same image
and show me this error