add space code
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ Visit [awesome-openai-vision-api-experiments](https://github.com/roboflow/awesom
|
|
16 |
repository to find more OpenAI Vision API experiments or contribute your own."""
|
17 |
|
18 |
def respond(api_key, input_image, dino_prompt, gpt_prompt):
|
19 |
-
input_image = cv2.cvtColor(input_image, cv2.COLOR_BGR2RGB)
|
|
|
20 |
|
21 |
DINOGPT = CustomDetectionModel(
|
22 |
detection_model=GroundedSAM(CaptionOntology(
|
|
|
16 |
repository to find more OpenAI Vision API experiments or contribute your own."""
|
17 |
|
18 |
def respond(api_key, input_image, dino_prompt, gpt_prompt):
|
19 |
+
# input_image = cv2.cvtColor(input_image, cv2.COLOR_BGR2RGB)
|
20 |
+
cv2.imwrite("input.jpg", input_image)
|
21 |
|
22 |
DINOGPT = CustomDetectionModel(
|
23 |
detection_model=GroundedSAM(CaptionOntology(
|