Spaces:
Build error
Build error
Commit
·
531cf19
1
Parent(s):
87e5035
Update app.py
Browse files
app.py
CHANGED
@@ -130,13 +130,13 @@ def inference(img):
|
|
130 |
f"{predicted_label} - X:({int(x0)} Y: {int(y0)} Width {int(width)} Height: {int(height)})"
|
131 |
)
|
132 |
|
133 |
-
chat_gpt_response = get_response_from_chatbot(
|
134 |
-
|
135 |
-
)
|
136 |
|
137 |
return (
|
138 |
Image.fromarray(np.uint8(out.get_image())).convert("RGB"),
|
139 |
-
|
140 |
)
|
141 |
|
142 |
|
|
|
130 |
f"{predicted_label} - X:({int(x0)} Y: {int(y0)} Width {int(width)} Height: {int(height)})"
|
131 |
)
|
132 |
|
133 |
+
#chat_gpt_response = get_response_from_chatbot(
|
134 |
+
# f"You are an intelligent image captioner. I will hand you the objects and their position, and you should give me a detailed description for the photo. In this photo we have the following objects\n{object_list_str}"
|
135 |
+
#)
|
136 |
|
137 |
return (
|
138 |
Image.fromarray(np.uint8(out.get_image())).convert("RGB"),
|
139 |
+
f"You are an intelligent image captioner. I will hand you the objects and their position, and you should give me a detailed description for the photo. In this photo we have the following objects\n{object_list_str}"
|
140 |
)
|
141 |
|
142 |
|