Vihang28 commited on
Commit
0bc20bc
·
verified ·
1 Parent(s): a3df754

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,9 +14,8 @@ def encode_image(image_path):
14
  def api_calling(image, prompt, api_key):
15
  base64_image = encode_image(image)
16
  if len(prompt) == 0:
17
- # prompt = "Provide a brief description of the image."
18
- prompt = "As we can see there are number of complete and partial tiles visible in the image, I want you to count all the tiles those are visible in the image, then i want you to tell the number of dark grey and light grey tiles and aloong with that tell the number of tiles with withering or dirt."
19
- # prompt = "I want you to act as an image elaborator. I will share an image with you and you will reply to me with the explanation of the image with accuracy in English, I want you to keep the reply neat, limiting the reply to 200 words. You can ask me questions in conversational manor if need, but asnwer the questions asked after understadning what is being asked."
20
 
21
  headers = {
22
  "Content-Type": "application/json",
 
14
  def api_calling(image, prompt, api_key):
15
  base64_image = encode_image(image)
16
  if len(prompt) == 0:
17
+ prompt = "I want you to act as my friend. I will share images with you and ask about my queries related to the images and you will reply to me with the explanation of the image with accuracy with compassion and in conversational manor. I want you to keep the reply neat, limiting the reply to 200 words in English."
18
+ # prompt = "I want you to act as an image elaborator. I will share an image with you and you will reply to me with the explanation of the image with accuracy, I want you to keep the reply neat, limiting the reply to 200 words in English. You can ask me questions in conversational manor if needed, but answer the questions after properly understadning what is being asked."
 
19
 
20
  headers = {
21
  "Content-Type": "application/json",