Spaces:
Runtime error
Runtime error
Gabriel C
commited on
Commit
β’
59426e0
1
Parent(s):
c75ac23
Update app.py
Browse files
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-
|
15 |
model.to("cuda:0")
|
16 |
-
processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-
|
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-
|
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,
|