Update README.md
Browse files
README.md
CHANGED
@@ -32,6 +32,7 @@ model.get_gradio_demo(tokenizer, image_processor).queue(max_size=20).launch(serv
|
|
32 |
```python
|
33 |
import os; os.system("pip3 install transformers accelerate bitsandbytes gradio fire")
|
34 |
from transformers import AutoModel, AutoTokenizer, AutoImageProcessor
|
|
|
35 |
|
36 |
model_id = "jxu124/TiO"
|
37 |
model = AutoModel.from_pretrained(model_id, trust_remote_code=True, torch_dtype=torch.float16).cuda()
|
@@ -41,7 +42,6 @@ image_processor = AutoImageProcessor.from_pretrained(model_id)
|
|
41 |
# ---- mini example ----
|
42 |
from PIL import Image
|
43 |
from io import BytesIO
|
44 |
-
import torch
|
45 |
import requests
|
46 |
|
47 |
# Prepare example
|
|
|
32 |
```python
|
33 |
import os; os.system("pip3 install transformers accelerate bitsandbytes gradio fire")
|
34 |
from transformers import AutoModel, AutoTokenizer, AutoImageProcessor
|
35 |
+
import torch
|
36 |
|
37 |
model_id = "jxu124/TiO"
|
38 |
model = AutoModel.from_pretrained(model_id, trust_remote_code=True, torch_dtype=torch.float16).cuda()
|
|
|
42 |
# ---- mini example ----
|
43 |
from PIL import Image
|
44 |
from io import BytesIO
|
|
|
45 |
import requests
|
46 |
|
47 |
# Prepare example
|