pgurazada1 commited on
Commit
136959f
1 Parent(s): ce32751

inference minor variations

Browse files
Files changed (1) hide show
  1. inference.py +2 -2
inference.py CHANGED
@@ -22,7 +22,7 @@ Xtrain, Xtest, ytrain, ytest = train_test_split(
22
  random_state=42
23
  )
24
 
25
- result = client.predict(
26
  3, # float in 'Carat' Number component
27
  "Round", # Literal['Round', 'Princess', 'Emerald', 'Asscher', 'Cushion', 'Radiant', 'Oval', 'Pear', 'Marquise'] in 'Shape' Dropdown component
28
  "Ideal", # Literal['Ideal', 'Premium', 'Very Good', 'Good', 'Fair'] in 'Cut' Dropdown component
@@ -33,4 +33,4 @@ result = client.predict(
33
  api_name="/predict"
34
  )
35
 
36
- print(result)
 
22
  random_state=42
23
  )
24
 
25
+ job = client.submit(
26
  3, # float in 'Carat' Number component
27
  "Round", # Literal['Round', 'Princess', 'Emerald', 'Asscher', 'Cushion', 'Radiant', 'Oval', 'Pear', 'Marquise'] in 'Shape' Dropdown component
28
  "Ideal", # Literal['Ideal', 'Premium', 'Very Good', 'Good', 'Fair'] in 'Cut' Dropdown component
 
33
  api_name="/predict"
34
  )
35
 
36
+ print(job.result())