boomcheng commited on
Commit
9b4c737
·
verified ·
1 Parent(s): dd1bf75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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("# Text-to-Image Generator with Object Addition")
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="Object Class", placeholder="Enter object class (e.g., Object_1)")
120
  bbox_input = gr.Textbox(label="Bounding Box (x1,y1,x2,y2)", placeholder="Enter bounding box coordinates")
121
 
122
- add_button = gr.Button("Add Object")
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):