Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def ImageCaptioning(image):
|
|
51 |
# Copy the contents of the uploaded image file to the temporary file
|
52 |
Image.fromarray(image).save(temp_image_file.name)
|
53 |
# Load the image file using Pillow
|
54 |
-
caption=predict_step(temp_image_file.name)
|
55 |
return caption
|
56 |
|
57 |
iface = gr.Interface(fn=ImageCaptioning, inputs="image", outputs="text")
|
|
|
51 |
# Copy the contents of the uploaded image file to the temporary file
|
52 |
Image.fromarray(image).save(temp_image_file.name)
|
53 |
# Load the image file using Pillow
|
54 |
+
caption=predict_step([temp_image_file.name])
|
55 |
return caption
|
56 |
|
57 |
iface = gr.Interface(fn=ImageCaptioning, inputs="image", outputs="text")
|