fix: Fixed links in image to add copy (#367)

This commit is contained in:
Lakshya Agarwal
2024-02-05 20:48:20 -05:00
committed by GitHub
parent b8df2becde
commit 3639aa6121
+2 -2
View File
@@ -2,7 +2,7 @@
This post demonstrates how to use GPT-4 Vision API and the Chat API to automatically generate advertising copy from product images. This method can be useful for marketing and advertising teams, as well as for e-commerce platforms.
The full code is available on [GitHub](https://www.github.com/jxnl/instructor/examples/vision/image_to_ad_copy.py).
The full code is available on [GitHub](https://www.github.com/jxnl/instructor/tree/main/examples/vision/image_to_ad_copy.py).
## Building the models
@@ -162,7 +162,7 @@ def generate_ad_copy(product: Product) -> AdCopy:
### Putting it all together
Finally, we can put it all together in a single function that takes a list of image URLs and generates advertising copy for the products identified in the images. Please refer to the [full code](https://www.github.com/jxnl/instructor/examples/vision/image_to_ad_copy.py) for the complete implementation.
Finally, we can put it all together in a single function that takes a list of image URLs and generates advertising copy for the products identified in the images. Please refer to the [full code](https://www.github.com/jxnl/instructor/tree/main/examples/vision/image_to_ad_copy.py) for the complete implementation.
## Input file