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

add new description field #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/backend/petspotr.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,25 @@ def create_pipeline(training_mltable_path, validation_mltable_path, pipeline_com
'''

class pet:
def __init__(self, ID, Name, Type, Breed, Images, State, OwnerEmail):
def __init__(self, ID, Name, Type, Breed, Images, State, OwnerEmail, Description):
self.ID = ID
self.Name = Name
self.Type = Type
self.Breed = Breed
self.Images = Images
self.State = State
self.OwnerEmail = OwnerEmail
self.Description = Description

def train_model(self):
print('Training model')
# Existing code...

def predict_image(self):
print('Predicting image')
# Existing code...

def alert_owner(self, dapr_client: DaprClient):
'''
Temporarily commented out due to features not yet publicly available in the Azure ML SDK for Python.

Expand Down
Loading