ywen commited on
Commit
2430d13
1 Parent(s): b4d91df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ with demo:
75
  with gr.Row():
76
  with gr.Column():
77
  gr.Markdown("### Image to Prompt")
78
- input_image = gr.inputs.Image(type="pil", label="Target Image")
79
  image_button = gr.Button("Generate Prompt")
80
 
81
  gr.Markdown("### Long Prompt to Short Prompt")
@@ -87,7 +87,7 @@ with demo:
87
 
88
  with gr.Column():
89
  gr.Markdown("### Learned Prompt")
90
- output_prompt = gr.outputs.Textbox(label="Learned Prompt")
91
 
92
  image_button.click(inference, inputs=[input_image, prompt_len_field, num_step_field], outputs=output_prompt)
93
  prompt_button.click(inference_text, inputs=[input_prompt, prompt_len_field, num_step_field], outputs=output_prompt)
 
75
  with gr.Row():
76
  with gr.Column():
77
  gr.Markdown("### Image to Prompt")
78
+ input_image = gr.Image(type="pil", label="Target Image")
79
  image_button = gr.Button("Generate Prompt")
80
 
81
  gr.Markdown("### Long Prompt to Short Prompt")
 
87
 
88
  with gr.Column():
89
  gr.Markdown("### Learned Prompt")
90
+ output_prompt = gr.Textbox(label="Learned Prompt")
91
 
92
  image_button.click(inference, inputs=[input_image, prompt_len_field, num_step_field], outputs=output_prompt)
93
  prompt_button.click(inference_text, inputs=[input_prompt, prompt_len_field, num_step_field], outputs=output_prompt)