Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,8 @@ with gr.Blocks() as demo:
|
|
| 105 |
show_label=False,
|
| 106 |
max_lines=1,
|
| 107 |
placeholder="Enter your prompt here",
|
| 108 |
-
container=False
|
|
|
|
| 109 |
)
|
| 110 |
submit_button = gr.Button("Submit Prompt", scale=0)
|
| 111 |
|
|
@@ -116,8 +117,8 @@ with gr.Blocks() as demo:
|
|
| 116 |
)
|
| 117 |
|
| 118 |
with gr.Row():
|
| 119 |
-
object_class_input = gr.Textbox(label="Sub-caption", placeholder="Enter Sub-caption (e.g., apple)")
|
| 120 |
-
bbox_input = gr.Textbox(label="Bounding Box (x1,y1,x2,y2)", placeholder="Enter bounding box coordinates")
|
| 121 |
|
| 122 |
add_button = gr.Button("Add")
|
| 123 |
|
|
|
|
| 105 |
show_label=False,
|
| 106 |
max_lines=1,
|
| 107 |
placeholder="Enter your prompt here",
|
| 108 |
+
container=False,
|
| 109 |
+
value = "A photograph of a young woman wrapped in a towel wearing a pair of sunglasses"
|
| 110 |
)
|
| 111 |
submit_button = gr.Button("Submit Prompt", scale=0)
|
| 112 |
|
|
|
|
| 117 |
)
|
| 118 |
|
| 119 |
with gr.Row():
|
| 120 |
+
object_class_input = gr.Textbox(label="Sub-caption", placeholder="Enter Sub-caption (e.g., apple)",value = "a towel")
|
| 121 |
+
bbox_input = gr.Textbox(label="Bounding Box (x1,y1,x2,y2)", placeholder="Enter bounding box coordinates(>=0 and <=512)",value = "17,77,144,155")
|
| 122 |
|
| 123 |
add_button = gr.Button("Add")
|
| 124 |
|