Ashrafb commited on
Commit
322247c
·
verified ·
1 Parent(s): 30b9303

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
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()