Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ from PIL import Image
|
|
| 8 |
from transformers import AutoModelForVision2Seq, AutoProcessor, AutoTokenizer, TextIteratorStreamer
|
| 9 |
|
| 10 |
|
| 11 |
-
TITLE = "<h1><center>Chat with PaliGemma-3B-Chat-v0.
|
| 12 |
|
| 13 |
-
DESCRIPTION = "<h3><center>Visit <a href='https://huggingface.co/
|
| 14 |
|
| 15 |
CSS = """
|
| 16 |
.duplicate-button {
|
|
@@ -22,7 +22,7 @@ CSS = """
|
|
| 22 |
"""
|
| 23 |
|
| 24 |
|
| 25 |
-
model_id = "
|
| 26 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 27 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 28 |
model = AutoModelForVision2Seq.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
|
|
|
|
| 8 |
from transformers import AutoModelForVision2Seq, AutoProcessor, AutoTokenizer, TextIteratorStreamer
|
| 9 |
|
| 10 |
|
| 11 |
+
TITLE = "<h1><center>Chat with PaliGemma-3B-Chat-v0.2</center></h1>"
|
| 12 |
|
| 13 |
+
DESCRIPTION = "<h3><center>Visit <a href='https://huggingface.co/BUAADreamer/PaliGemma-3B-Chat-v0.2' target='_blank'>our model page</a> for details.</center></h3>"
|
| 14 |
|
| 15 |
CSS = """
|
| 16 |
.duplicate-button {
|
|
|
|
| 22 |
"""
|
| 23 |
|
| 24 |
|
| 25 |
+
model_id = "BUAADreamer/PaliGemma-3B-Chat-v0.2"
|
| 26 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 27 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 28 |
model = AutoModelForVision2Seq.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
|