Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def generate_image(prompt, guidance_scale, num_inference_steps, randomize_seed,
|
|
| 83 |
width=512,
|
| 84 |
height=512
|
| 85 |
).images[0]
|
| 86 |
-
|
| 87 |
return image, seed
|
| 88 |
|
| 89 |
# Function to clear all arrays and reset the UI
|
|
@@ -94,7 +94,7 @@ def clear_arrays():
|
|
| 94 |
|
| 95 |
# Gradio UI
|
| 96 |
with gr.Blocks() as demo:
|
| 97 |
-
gr.Markdown("#
|
| 98 |
|
| 99 |
# Put prompt and submit button in the same row
|
| 100 |
with gr.Group():
|
|
@@ -116,10 +116,10 @@ with gr.Blocks() as demo:
|
|
| 116 |
)
|
| 117 |
|
| 118 |
with gr.Row():
|
| 119 |
-
object_class_input = gr.Textbox(label="
|
| 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 |
|
| 124 |
# Advanced settings in a collapsible accordion
|
| 125 |
with gr.Accordion("Advanced Settings", open=False):
|
|
|
|
| 83 |
width=512,
|
| 84 |
height=512
|
| 85 |
).images[0]
|
| 86 |
+
print(type(image),'image')
|
| 87 |
return image, seed
|
| 88 |
|
| 89 |
# Function to clear all arrays and reset the UI
|
|
|
|
| 94 |
|
| 95 |
# Gradio UI
|
| 96 |
with gr.Blocks() as demo:
|
| 97 |
+
gr.Markdown("# HiCo_T2I 512px")
|
| 98 |
|
| 99 |
# Put prompt and submit button in the same row
|
| 100 |
with gr.Group():
|
|
|
|
| 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 |
|
| 124 |
# Advanced settings in a collapsible accordion
|
| 125 |
with gr.Accordion("Advanced Settings", open=False):
|