Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ pipe.enable_model_cpu_offload()
|
|
11 |
caption = gr.load(name="spaces/fffiloni/CoCa-clone")
|
12 |
|
13 |
def create_image_caption(image_init):
|
14 |
-
cap = caption(image_init, "
|
15 |
print("cap: " + cap)
|
16 |
return cap
|
17 |
|
|
|
11 |
caption = gr.load(name="spaces/fffiloni/CoCa-clone")
|
12 |
|
13 |
def create_image_caption(image_init):
|
14 |
+
cap = caption(image_init, "Nucleus sampling", 1.2, 0.5, 5, 20, fn_index=0)
|
15 |
print("cap: " + cap)
|
16 |
return cap
|
17 |
|