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