Gabriel C commited on
Commit
59426e0
β€’
1 Parent(s): c75ac23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,9 +11,9 @@ from transformers import (
11
  )
12
 
13
  # Load model and processor
14
- model = LlavaNextForConditionalGeneration.from_pretrained("llava-hf/llava-v1.6-34b-hf")
15
  model.to("cuda:0")
16
- processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-34b-hf")
17
 
18
  @spaces.GPU(duration=240)
19
  def generate_caption(image):
@@ -36,7 +36,7 @@ def generate_caption(image):
36
 
37
 
38
  # Define the Gradio interface
39
- description = """This is a demo of [`llava-hf/llava-v1.6-34b-hf`](https://huggingface.co/llava-hf/llava-v1.6-34b-hf) hosted with ZeroGPU."""
40
 
41
  iface = gr.Interface(
42
  fn=generate_caption,
 
11
  )
12
 
13
  # Load model and processor
14
+ model = LlavaNextForConditionalGeneration.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
15
  model.to("cuda:0")
16
+ processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-mistral-7b-hf")
17
 
18
  @spaces.GPU(duration=240)
19
  def generate_caption(image):
 
36
 
37
 
38
  # Define the Gradio interface
39
+ description = """This is a demo of [`llava-hf/llava-v1.6-mistral-7b-hf`](https://huggingface.co/llava-hf/llava-v1.6-mistral-7b-hf) hosted with ZeroGPU."""
40
 
41
  iface = gr.Interface(
42
  fn=generate_caption,