Vibow commited on
Commit
6bab603
·
verified ·
1 Parent(s): 6c6e36b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -750,20 +750,21 @@ def chat():
750
  "role": "user",
751
  "content": [
752
  {
753
- "type": "input_text",
754
  "text": prompt if prompt else "Describe this image."
755
  },
756
  {
757
  # Cohere accepts data URI as image url - keep the data URI if present
758
- "type": "input_image",
759
- "image": image_base64
 
 
 
760
  }
761
  ]
762
  }
763
  ],
764
- # optional tuning
765
- "temperature": 0.6,
766
- "max_tokens": 800
767
  }
768
 
769
  headers = {
 
750
  "role": "user",
751
  "content": [
752
  {
753
+ "type": "text",
754
  "text": prompt if prompt else "Describe this image."
755
  },
756
  {
757
  # Cohere accepts data URI as image url - keep the data URI if present
758
+ "type": "image_url",
759
+ "image_url": {
760
+ "url": image_base64,
761
+ "detail": "auto"
762
+ }
763
  }
764
  ]
765
  }
766
  ],
767
+
 
 
768
  }
769
 
770
  headers = {