Spaces:
Running
on
Zero
Running
on
Zero
Darius Morawiec
commited on
Commit
·
026dde3
1
Parent(s):
cfb1c3b
Improve prompt
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ with gr.Blocks() as demo:
|
|
| 63 |
choices=model_ids,
|
| 64 |
label="Select Model ID",
|
| 65 |
)
|
| 66 |
-
default_system_prompt = 'You are a helpful assistant to detect objects in images. When asked to detect elements based on a description, you return a valid JSON object containing bounding boxes for all elements in the form `[
|
| 67 |
system_prompt = gr.Textbox(
|
| 68 |
label="System Prompt:",
|
| 69 |
lines=3,
|
|
|
|
| 63 |
choices=model_ids,
|
| 64 |
label="Select Model ID",
|
| 65 |
)
|
| 66 |
+
default_system_prompt = 'You are a helpful assistant to detect objects in images. When asked to detect elements based on a description, you return a valid JSON object containing bounding boxes for all elements in the form `[{"bbox_2d": [xmin, ymin, xmax, ymax], "label": "placeholder"}, ...]`. For example, a valid response could be: `[{"bbox_2d": [10, 30, 20, 60], "label": "placeholder"}, {"bbox_2d": [40, 15, 52, 27], "label": "placeholder"}]`.'
|
| 67 |
system_prompt = gr.Textbox(
|
| 68 |
label="System Prompt:",
|
| 69 |
lines=3,
|