Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
headers = {
|
| 21 |
"Content-Type": "application/json",
|
| 22 |
"Authorization": f"Bearer {api_key}"
|
|
|
|
| 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, compassion and in conversational manor. I want you to keep the reply neat, limiting the reply to 200 words in English."
|
| 18 |
+
|
|
|
|
| 19 |
headers = {
|
| 20 |
"Content-Type": "application/json",
|
| 21 |
"Authorization": f"Bearer {api_key}"
|