Add link to GitHub repository and fix usage example

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -10,6 +10,8 @@ pipeline_tag: video-text-to-text
10
 
11
  This model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).
12
 
 
 
13
  ## ๐Ÿƒ Installation
14
 
15
  ```
@@ -27,5 +29,5 @@ model_path = "OpenGVLab/VideoChat-TPO"
27
  tokenizer = AutoTokenizer.from_pretrained(model_path,
28
  trust_remote_code=True,
29
  use_fast=False,)
30
- model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=self.tokenizer).eval()
31
  ```
 
10
 
11
  This model is based on the paper [Task Preference Optimization: Improving Multimodal Large Language Models with Vision Task Alignment](https://huggingface.co/papers/2412.19326).
12
 
13
+ Code: [https://github.com/OpenGVLab/VideoChat-TPO](https://github.com/OpenGVLab/VideoChat-TPO)
14
+
15
  ## ๐Ÿƒ Installation
16
 
17
  ```
 
29
  tokenizer = AutoTokenizer.from_pretrained(model_path,
30
  trust_remote_code=True,
31
  use_fast=False,)
32
+ model = AutoModel.from_pretrained(model_path, trust_remote_code=True, _tokenizer=tokenizer).eval()
33
  ```