Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Python Functions for Google Cloud #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crc1200
Copy link
Contributor

@crc1200 crc1200 commented Dec 3, 2022

These functions allow you to connect to the cloud endpoint and make predictions

These functions allow you to connect to the cloud endpoint and make predictions
if x > 0:
res.add(names[int(x)])

for r in res:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is what is sent back to the server


foo.save('/Users/conorcunningham/Downloads/Coding/course-project-recipe-app-connecting_front_end/recipe/foo1.jpeg', quality=95) # The saved downsized image size is 24.8kb

foo.save('/Users/conorcunningham/Downloads/Coding/course-project-recipe-app-connecting_front_end/recipe/foo2.jpeg', optimize=True, quality=95) # The saved downsized image size is 22.9kb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these hardcoded to your computer


ENDPOINT_ID = "727933872192356352"

PROJECT_ID = "376367983155"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these ids specific to the one instance of a gpu, like do we have to change these if the end point goes down?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants