Virtual-Try-On / auth_guide.md
Anirudh1950's picture
Publish project from GitHub
8a09f8a verified
|
Raw History Blame Contribute Delete
1.23 kB

How to Get a Service Account Key (JSON)

Since you don't have the gcloud tool installed, the easiest way to authenticate is to use a Service Account Key.

  1. Go to Service Accounts:

  2. Create a Service Account:

    • Click + CREATE SERVICE ACCOUNT (top).
    • Name: tryon-user (or anything).
    • Click CREATE AND CONTINUE.
  3. Grant Permissions (Crucial Step):

    • In the "Select a role" box, type Vertex AI User and select it.
    • Add another role: Storage Object Admin (so it can save to your bucket).
    • Click CONTINUE -> DONE.
  4. Create Key:

    • In the list, click the email address of the service account you just created (e.g., tryon-user@...).
    • Go to the KEYS tab (top bar).
    • Click ADD KEY -> Create new key.
    • Select JSON.
    • Click CREATE.
  5. Download:

    • A .json file will automatically download to your computer.
    • Upload this file in the Streamlit app sidebar!