SeyedAli commited on
Commit
eaa52e3
1 Parent(s): fc853f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")