Skip to content

Commit 6e4d6d3

Browse files
authored
Merge pull request #662 from watson-developer-cloud/fix
fix(VR): Fix VR examples and remove dashboard link
2 parents f5e811e + 7df4619 commit 6e4d6d3

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ To find out which authentication to use, view the service credentials. You find
9898

9999
On this page, you should be able to see your credentials for accessing your service instance.
100100

101-
![alt text](https://user-images.githubusercontent.com/13935994/55351058-6ac51900-548b-11e9-886e-945c6d4f31df.png)
102-
103-
104101
### Supplying credentials
105102

106103
There are two ways to supply the credentials you found above to the SDK for authentication.

examples/visual_recognition_v3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# with open(abspath('resources/cars.zip'), 'rb') as cars, \
1717
# open(abspath('resources/trucks.zip'), 'rb') as trucks:
1818
# classifier = service.create_classifier('Cars vs Trucks',
19-
# positive_examples={'cars_positive_examples': cars},
19+
# positive_examples={'cars': cars},
2020
# negative_examples=trucks).get_result()
2121
# print(json.dumps(classifier, indent=2))
2222

test/integration/test_visual_recognition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_custom_classifier(self):
4242
open(abspath('resources/trucks.zip'), 'rb') as trucks:
4343
classifier = self.visual_recognition.create_classifier(
4444
'CarsVsTrucks',
45-
positive_examples={'cars_positive_examples': cars},
45+
positive_examples={'cars': cars},
4646
negative_examples=trucks,
4747
).get_result()
4848

test/unit/test_visual_recognition_v3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_create_classifier(self):
111111

112112
with open(os.path.join(os.path.dirname(__file__), '../../resources/cars.zip'), 'rb') as cars, \
113113
open(os.path.join(os.path.dirname(__file__), '../../resources/trucks.zip'), 'rb') as trucks:
114-
vr_service.create_classifier('Cars vs Trucks', positive_examples={'cars_positive_examples': cars}, negative_examples=trucks)
114+
vr_service.create_classifier('Cars vs Trucks', positive_examples={'cars': cars}, negative_examples=trucks)
115115

116116
assert len(responses.calls) == 2
117117

0 commit comments

Comments
 (0)