sst1 commited on
Commit
ff92092
1 Parent(s): ecdbb3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("my-quantized-llava-model")
6
- tokenizer = AutoTokenizer.from_pretrained("my-quantized-llava-model")
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):