Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,11 @@ def generate_caption(processor, model, image, use_float_16=False):
|
|
30 |
|
31 |
def generate_captions(image):
|
32 |
|
33 |
-
img = Image.open(image)
|
34 |
-
caption_git = generate_caption(git_processor, git_model,
|
35 |
|
36 |
-
caption_blip = generate_caption(blip_processor, blip_model,
|
37 |
-
env, scene = predict_environment(
|
38 |
|
39 |
return env,scene,caption_git_large_textcaps, caption_blip_large
|
40 |
|
|
|
30 |
|
31 |
def generate_captions(image):
|
32 |
|
33 |
+
#img = Image.open(image)
|
34 |
+
caption_git = generate_caption(git_processor, git_model, image)
|
35 |
|
36 |
+
caption_blip = generate_caption(blip_processor, blip_model, image)
|
37 |
+
env, scene = predict_environment(image)
|
38 |
|
39 |
return env,scene,caption_git_large_textcaps, caption_blip_large
|
40 |
|