Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixed resources should be passed in by environment variables (2/2) #52

Copy link
Copy link
@aribray

Description

@aribray
Issue body actions

Essentially what we want here is that I as a developer, should be able to run the tests on these samples without modifying them to confirm they still work. However unless I'm on the team maintaining the samples, I likely don't have access to the resources it's tested with. By using env variables means all I need to do when running locally is change the env var, and not worry about changing the model ids when there is a problem.

So something like this is perfectly acceptable:

resource_id = os.getenv("YOUR-RESOURCE-NAME")

For bonus points you can include a link to instructions for creating the resource, if you really want to make it accessible for other developers.

Originally posted by @kurtisvg in #13 (comment)

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

api: aiplatformIssues related to the AI Platform API.Issues related to the AI Platform API.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.