Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import AutoTokenizer
|
|
3 |
from llava import LlavaForConditionalGeneration
|
4 |
|
5 |
# Load the LLaVA model and tokenizer from the Hub
|
6 |
-
model = LlavaForConditionalGeneration.from_pretrained("
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
8 |
|
9 |
# Define a function to generate a response given an input text and an optional image URL
|
10 |
def generate_response(text, image_url=None):
|
|
|
3 |
from llava import LlavaForConditionalGeneration
|
4 |
|
5 |
# Load the LLaVA model and tokenizer from the Hub
|
6 |
+
model = LlavaForConditionalGeneration.from_pretrained("liuhaotian/llava-v1.6-34b")
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("liuhaotian/llava-v1.6-34b")
|
8 |
|
9 |
# Define a function to generate a response given an input text and an optional image URL
|
10 |
def generate_response(text, image_url=None):
|