def get_url_from_gcs()

in experiments/google/cloud/ml/applied/images/image_to_text.py [0:0]


def get_url_from_gcs(gcs_uri: str) -> str:
    # converts gcs uri to url for image display.
    url = "https://storage.googleapis.com/" + gcs_uri.replace("gs://", "").replace(
        " ", "%20"
    )
    return url