Update main.py
Browse files
main.py
CHANGED
@@ -39,6 +39,9 @@ async def get_caption(image: UploadFile = File(...), context: str = None):
|
|
39 |
# Save the uploaded image to a temporary file
|
40 |
temp_file_path = await save_upload_file(image)
|
41 |
|
|
|
|
|
|
|
42 |
# Check if additional context is provided and not None
|
43 |
if context is not None:
|
44 |
context = context.strip()
|
|
|
39 |
# Save the uploaded image to a temporary file
|
40 |
temp_file_path = await save_upload_file(image)
|
41 |
|
42 |
+
# Debugging: Print the value of additional_context
|
43 |
+
print("Additional Context:", context)
|
44 |
+
|
45 |
# Check if additional context is provided and not None
|
46 |
if context is not None:
|
47 |
context = context.strip()
|