Spaces:
Running
on
Zero
Running
on
Zero
prompt
Browse files
app.py
CHANGED
@@ -317,17 +317,17 @@ with block:
|
|
317 |
target = gr.Radio(["Image-Driven Style Transfer", "Text-Driven Style Synthesis", "Text Edit-Driven Style Synthesis"],
|
318 |
value="Image-Driven Style Transfer",
|
319 |
label="task")
|
320 |
-
|
321 |
-
["caption of Blip", "user input"], label="prompt_type", value=["caption of Blip"],
|
322 |
-
info="Choose to enter more detailed prompts yourself or use the blip model to describe content images."
|
323 |
-
)
|
324 |
# prompt_type = gr.Radio(["caption of Blip", "user input"],
|
325 |
# value="caption of Blip",
|
326 |
# label="prompt type")
|
327 |
|
328 |
prompt = gr.Textbox(label="Prompt",
|
329 |
value="there is a small house with a sheep statue on top of it")
|
330 |
-
|
|
|
|
|
|
|
331 |
if prompt_type == "caption of Blip" and target == "Image-Driven Style Transfer":
|
332 |
prompt =''
|
333 |
|
|
|
317 |
target = gr.Radio(["Image-Driven Style Transfer", "Text-Driven Style Synthesis", "Text Edit-Driven Style Synthesis"],
|
318 |
value="Image-Driven Style Transfer",
|
319 |
label="task")
|
320 |
+
|
|
|
|
|
|
|
321 |
# prompt_type = gr.Radio(["caption of Blip", "user input"],
|
322 |
# value="caption of Blip",
|
323 |
# label="prompt type")
|
324 |
|
325 |
prompt = gr.Textbox(label="Prompt",
|
326 |
value="there is a small house with a sheep statue on top of it")
|
327 |
+
prompt_type = gr.CheckboxGroup(
|
328 |
+
["caption of Blip", "user input"], label="prompt_type", value=["caption of Blip"],
|
329 |
+
info="Choose to enter more detailed prompts yourself or use the blip model to describe content images."
|
330 |
+
)
|
331 |
if prompt_type == "caption of Blip" and target == "Image-Driven Style Transfer":
|
332 |
prompt =''
|
333 |
|