austinmw commited on
Commit
2f3b751
1 Parent(s): f584779

Upload tool

Browse files
Files changed (2) hide show
  1. blip_tool.py +0 -7
  2. requirements.txt +1 -4
blip_tool.py CHANGED
@@ -1,10 +1,3 @@
1
- import os
2
- import requests
3
-
4
- os.environ['TRANSFORMERS_CACHE'] = "/home/ec2-user/SageMaker/blip/cache"
5
-
6
- from PIL import Image
7
-
8
  import torch
9
  from transformers import AutoModelForVision2Seq, AutoProcessor
10
  from transformers import InstructBlipProcessor, InstructBlipForConditionalGeneration
 
 
 
 
 
 
 
 
1
  import torch
2
  from transformers import AutoModelForVision2Seq, AutoProcessor
3
  from transformers import InstructBlipProcessor, InstructBlipForConditionalGeneration
requirements.txt CHANGED
@@ -1,5 +1,2 @@
1
- requests
2
- torch
3
  transformers
4
- os
5
- PIL
 
 
 
1
  transformers
2
+ torch