awacke1 commited on
Commit
eb21303
1 Parent(s): 9d717c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1598,7 +1598,7 @@ def process_image(image_input, user_prompt):
1598
 
1599
  # Extract boldface terms from image_response then autoname save file
1600
  #boldface_terms = extract_boldface_terms(image_response)
1601
- boldface_terms = extract_title(image_response)
1602
  filename_stem, extension = os.path.splitext(image_input.name)
1603
  filename_img = f"{filename_stem} {''.join(boldface_terms)}{extension}"
1604
  newfilename = save_image(image_input, filename_img)
 
1598
 
1599
  # Extract boldface terms from image_response then autoname save file
1600
  #boldface_terms = extract_boldface_terms(image_response)
1601
+ boldface_terms = extract_title(image_response).replace(':','')
1602
  filename_stem, extension = os.path.splitext(image_input.name)
1603
  filename_img = f"{filename_stem} {''.join(boldface_terms)}{extension}"
1604
  newfilename = save_image(image_input, filename_img)