DevJGraham commited on
Commit
c3a8c2b
·
verified ·
1 Parent(s): 3ae73bb

Create README.md code used to upload model

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ caption = pipeline('image-to-text')
2
+
3
+ caption.save_pretrained("image_to_text_safetensors", safe_serialization=True)
4
+
5
+ !huggingface-cli repo create image_to_text_safetensors --type model
6
+
7
+ from huggingface_hub import upload_folder
8
+
9
+ upload_folder(
10
+ repo_id="DevJGraham/image_to_text_safetensors",
11
+ folder_path="image_to_text_safetensors"
12
+ )