xingpng commited on
Commit
478d94b
1 Parent(s): 6cf5e77
Files changed (1) hide show
  1. app.py +5 -5
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
- prompt_type = gr.CheckboxGroup(
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