Spaces:
Runtime error
Runtime error
Update app.py
Browse files28 unmodified lines2930313233343528 unmodified linesbase64_image = encode_image(image)if len(prompt) == 0:# 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."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, if tiles appear clean then you can reply with the fixed answer "All tiles are clean". Reply with accuracy and compassion. I want you to keep the reply neat, limiting the reply to 25 words in English."headers = {"Content-Type": "application/json",28 unmodified lines2930313233343528 unmodified linesbase64_image = encode_image(image)if len(prompt) == 0:# 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."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, if tiles appear clean then you can reply with the fixed answer 'All tiles are clean'. Reply with accuracy and compassion. I want you to keep the reply neat, limiting the reply to 25 words in English."headers = {"Content-Type": "application/json",
app.py+1-1