Spaces:
Runtime error
Runtime error
chats-bug
commited on
Commit
•
bba74e9
1
Parent(s):
2bcaca6
Named parameters all
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ def generate_captions(
|
|
42 |
model = MODELS[model_name](device)
|
43 |
|
44 |
captions = model.generate(
|
45 |
-
image,
|
46 |
-
max_length,
|
47 |
-
num_captions,
|
48 |
temperature=temperature,
|
49 |
top_k=top_k,
|
50 |
top_p=top_p,
|
|
|
42 |
model = MODELS[model_name](device)
|
43 |
|
44 |
captions = model.generate(
|
45 |
+
image=image,
|
46 |
+
max_length=max_length,
|
47 |
+
num_captions=num_captions,
|
48 |
temperature=temperature,
|
49 |
top_k=top_k,
|
50 |
top_p=top_p,
|