fepegar commited on
Commit
be872eb
·
1 Parent(s): 338d429

Update demo and README

Browse files
Files changed (2) hide show
  1. COLIPRI_demo.ipynb +0 -0
  2. README.md +3 -3
COLIPRI_demo.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
README.md CHANGED
@@ -89,10 +89,10 @@ Now, let's instantiate the model and processor.
89
  ```python
90
  >>> from colipri import ZeroShotImageClassificationPipeline
91
  >>> pipeline = ZeroShotImageClassificationPipeline(model, processor)
92
- >>> pipeline(image, ["No lung nodules", "Lung nodules"])
93
  [
94
- {'score': 0.0007, 'label': 'No lung nodules'},
95
- {'score': 0.9993, 'label': 'Lung nodules'}
96
  ]
97
  ```
98
 
 
89
  ```python
90
  >>> from colipri import ZeroShotImageClassificationPipeline
91
  >>> pipeline = ZeroShotImageClassificationPipeline(model, processor)
92
+ >>> pipeline(image, ["No lung nodules present", "Lung nodules present"])
93
  [
94
+ {'score': 0.0002, 'label': 'No lung nodules present'},
95
+ {'score': 0.9998, 'label': 'Lung nodules present'}
96
  ]
97
  ```
98