def get_scene_prompt(filename: str) -> str:
    """Check the scene lora and get the scene prompt from the path `filename`.

    Args:
        filename (str): the Lora file path.

    Returns:
        A string represents the scene prompt.
    """
    metadata = read_lora_metadata(filename)
    if str(metadata.get("ep_lora_version", "")).startswith("scene"):
        prompt = str(metadata.get("ep_prompt", ""))
        # Convert a list of strings (type: str) into an list of strings (type: List).
        if prompt[0] == "[" and prompt[-1] == "]":
            prompt_list = re.findall(r"'(.*?)'", prompt)
            prompt = random.choice(prompt_list)
        return prompt
    return ""
Check the scene lora and get the scene prompt from the path `filename`.

    Args:
        filename (str): the Lora file path.

    Returns:
        A string represents the scene prompt.
    
scripts/sdwebui.py