Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ with gr.Blocks(title="ConsistentID_SDXL Demo") as demo:
|
|
202 |
print(f"=========selected_template_images : {selected_template_images}=============== \r\n ")
|
203 |
gallery.select(select_function, None, selected_template_images)
|
204 |
with gr.TabItem("Upload Image") as upload_image_tab:
|
205 |
-
costum_image = gr.Image(label="Upload Image")
|
206 |
|
207 |
model_selected_tabs = [template_images_tab, upload_image_tab]
|
208 |
for i, tab in enumerate(model_selected_tabs):
|
@@ -211,14 +211,15 @@ with gr.Blocks(title="ConsistentID_SDXL Demo") as demo:
|
|
211 |
with gr.Column():
|
212 |
prompt_selected_tab = gr.State(0)
|
213 |
with gr.TabItem("template prompts") as template_prompts_tab:
|
214 |
-
prompt_selected = gr.Dropdown(value="A person, police officer, half body shot", elem_id='dropdown', choices=[
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
222 |
|
223 |
with gr.TabItem("custom prompt") as custom_prompt_tab:
|
224 |
prompt = gr.Textbox(label="prompt",placeholder="A man/woman wearing a santa hat")
|
|
|
202 |
print(f"=========selected_template_images : {selected_template_images}=============== \r\n ")
|
203 |
gallery.select(select_function, None, selected_template_images)
|
204 |
with gr.TabItem("Upload Image") as upload_image_tab:
|
205 |
+
costum_image = gr.Image(label="Upload Image", value = "xiangxiang_IMG.jpeg")
|
206 |
|
207 |
model_selected_tabs = [template_images_tab, upload_image_tab]
|
208 |
for i, tab in enumerate(model_selected_tabs):
|
|
|
211 |
with gr.Column():
|
212 |
prompt_selected_tab = gr.State(0)
|
213 |
with gr.TabItem("template prompts") as template_prompts_tab:
|
214 |
+
prompt_selected = gr.Dropdown(value="A person, police officer, half body shot", elem_id='dropdown', choices = [
|
215 |
+
"A young, handsome boy in a wedding suit, with a slender figure and a cute face",
|
216 |
+
"A young, handsome boy, prince, in a gorgeous palace, with a slender figure and a cute face",
|
217 |
+
"A young, handsome boy sitting at the beach with sunset, with a slender figure and a cute face",
|
218 |
+
"A young, handsome boy, police officer, half body shot, with a slender figure and a cute face",
|
219 |
+
"A young, handsome boy, sailor, in a boat above the ocean, with a slender figure and a cute face",
|
220 |
+
"A young, handsome boy wearing headphones, listening to music, with a slender figure and a cute face",
|
221 |
+
"A young, handsome boy, firefighter, half body shot, with a slender figure and a cute face"
|
222 |
+
], label=f"prepared prompts")
|
223 |
|
224 |
with gr.TabItem("custom prompt") as custom_prompt_tab:
|
225 |
prompt = gr.Textbox(label="prompt",placeholder="A man/woman wearing a santa hat")
|