Spaces:
Runtime error
Runtime error
Update app.py
Browse files13 unmodified lines1415161718192013 unmodified linesdef api_calling(image, prompt, api_key):base64_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 with 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 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."headers = {13 unmodified lines1415161718192013 unmodified linesdef api_calling(image, prompt, api_key):base64_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 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."headers = {
app.py+1-1