iaanimashaun / DED_Detector

Diabetic Eye Disease Detector
0 stars 0 forks source link

what missing here? #1

Open johnfelipe opened 3 years ago

johnfelipe commented 3 years ago
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

68747470733a2f2f7777772e64617669736f7074696369616e732e636f2e756b2f55706c6f6164732f496d6167652f636f6d702532304452692e6a7067

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(
johnfelipe commented 3 years ago

Anyone?