Skip to content

Commit 1e5f519

Browse files
committed
delete useless example
Change-Id: I885e86a70f3ef146163e234ffd1d8593cfe4e9f3
1 parent 4061d81 commit 1e5f519

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

examples/prompt/ptaas/ptaas_multimodal.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ def multimodal_example(client: Client) -> None:
5555
# User: 例如:{{example2}}
5656
# Assistant: {{city2}}
5757

58-
# Prepare Base64 image data (example)
59-
# In actual use, you need to provide a real image path
60-
image_path = "/Users/bytedance/Downloads/shanghai.jpeg"
61-
base64_data = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
58+
image_path = "your_image_path"
6259
# If image file exists, read and encode
6360
# 如果图片文件存在,读取并编码
6461
if os.path.exists(image_path):

0 commit comments

Comments
 (0)