Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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)
|