Spaces:
Sleeping
Sleeping
add comment for file url
Browse files- Tools/tools.py +1 -0
Tools/tools.py
CHANGED
|
@@ -178,6 +178,7 @@ def read_image_file(taskID: str) -> dict:
|
|
| 178 |
try:
|
| 179 |
# 1. Download the image from URL
|
| 180 |
response = requests.get(DEFAULT_File_URL + taskID)
|
|
|
|
| 181 |
response.raise_for_status() # ensure no HTTP error
|
| 182 |
content_type = response.headers.get("Content-Type", "")
|
| 183 |
# 2. Convert image bytes to base64
|
|
|
|
| 178 |
try:
|
| 179 |
# 1. Download the image from URL
|
| 180 |
response = requests.get(DEFAULT_File_URL + taskID)
|
| 181 |
+
print(f"image url {DEFAULT_File_URL + taskID}")
|
| 182 |
response.raise_for_status() # ensure no HTTP error
|
| 183 |
content_type = response.headers.get("Content-Type", "")
|
| 184 |
# 2. Convert image bytes to base64
|