iamrobotbear commited on
Commit
0e93f3e
·
1 Parent(s): 250a932

trying to do this damn csv thing again

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -75,6 +75,7 @@ def save_dataframe_to_csv(df):
75
 
76
  # Main function to perform image captioning and image-text matching
77
  def process_images_and_statements(image_file):
 
78
  image = Image.open(image_file)
79
  image = np.array(image)
80
  logging.info('Starting process_images_and_statements')
 
75
 
76
  # Main function to perform image captioning and image-text matching
77
  def process_images_and_statements(image_file):
78
+ image_file = io.BytesIO(image_file.read()) # Convert temporary file to a byte stream
79
  image = Image.open(image_file)
80
  image = np.array(image)
81
  logging.info('Starting process_images_and_statements')