Vihang28 commited on
Commit
8ac476d
·
verified ·
1 Parent(s): 36c8487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ 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, 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 a friendly tile setters who has 10 years of experience with floor tiling. I will share an image of floor with you and you will reply to me with the number of tiles visible in the image, number of different colored tiles, number of dirty tiles and their colors. Reply with accuracy, compassion and in conversational manor. I want you to keep the reply neat, limiting the reply to 200 words in English."
19
 
20
  headers = {
21
  "Content-Type": "application/json",
 
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, 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 a friendly tile setters who has 10 years of experience with floor tiling. I will share an image of floor with you and you will reply to me with the number of tiles that need cleaning. Reply with accuracy and compassion. I want you to keep the reply neat, limiting the reply to 50 words in English."
19
 
20
  headers = {
21
  "Content-Type": "application/json",