xingpng commited on
Commit
9f7f81b
·
1 Parent(s): 7f4dbbf
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -318,13 +318,13 @@ with block:
318
  value="Image-Driven Style Transfer",
319
  label="task")
320
 
321
- prompt_type = gr.Radio(
322
- ["caption of Blip", "user input"],
323
  value="caption of Blip",
324
  label="prompt type")
 
325
  prompt = gr.Textbox(label="Prompt",
326
  value="there is a small house with a sheep statue on top of it")
327
- if prompt_type == "caption of Blip":
328
  prompt =''
329
 
330
  scale_c = gr.Slider(minimum=0, maximum=2.0, step=0.01, value=0.6, label="Content Scale")
 
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
+ if prompt_type == "caption of Blip" and target == "Image-Driven Style Transfer":
328
  prompt =''
329
 
330
  scale_c = gr.Slider(minimum=0, maximum=2.0, step=0.01, value=0.6, label="Content Scale")