Spaces:
Runtime error
Runtime error
Gabriel C
commited on
Commit
β’
c75ac23
1
Parent(s):
02afc77
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model = LlavaNextForConditionalGeneration.from_pretrained("llava-hf/llava-v1.6-3
|
|
15 |
model.to("cuda:0")
|
16 |
processor = LlavaNextProcessor.from_pretrained("llava-hf/llava-v1.6-34b-hf")
|
17 |
|
18 |
-
@spaces.GPU(duration=
|
19 |
def generate_caption(image):
|
20 |
"""
|
21 |
Generate a poem from an image.
|
|
|
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):
|
20 |
"""
|
21 |
Generate a poem from an image.
|