from google.colab import drive  # type: ignore
from typing import Dict
import json


def get_secrets_remote() -> Dict[str, str]:
    """Gets secrets from remote file (secret.json) located in Google Drive. 
    Must be ran from Google Colaboratory.
    
    :return: Dictionary of secrets.
    :rtype: Dict[str, str]

    """


    drive.mount("/content/drive")
    with open("/content/drive/MyDrive/secrets.json") as file:
        secrets = json.load(file)
    return secrets