Skip to content

Commit

Permalink
update CLIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dsingal0 committed Jan 6, 2025
1 parent d7d181d commit aa9ced9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clip/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ model_metadata:
example_model_input:
url: https://images.pexels.com/photos/1170986/pexels-photo-1170986.jpeg?auto=compress&cs=tinysrgb&w=1600
model_name: clip-example
python_version: py39
python_version: py311
requirements:
- transformers==4.32.0
- pillow==10.0.0
- torch==2.0.1
- transformers==4.47.1
- pillow
- torch
resources:
accelerator: A10G
cpu: '3'
Expand Down
1 change: 1 addition & 0 deletions clip/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def preprocess(self, request: Dict) -> Dict:
padding=True,
)
return request


# The `predict` method performs the actual inference, and outputs a probability associated
# with each of the labels defined earlier.
Expand Down

0 comments on commit aa9ced9

Please sign in to comment.