Severian commited on
Commit
7a8f823
·
verified ·
1 Parent(s): 69c05d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -608,11 +608,11 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
608
 
609
  with gr.Column():
610
  error_message = gr.Markdown(visible=False)
 
611
  output_caption = gr.Textbox(label="Generated Caption")
612
 
613
  run_button = gr.Button("Make My Caption!")
614
 
615
-
616
  with gr.Accordion("Advanced Options for Style Prompt", open=False, visible=False) as advanced_options:
617
  gr.Markdown("### Advanced Options for Style Prompt")
618
  lens_type = gr.Dropdown(
@@ -661,7 +661,7 @@ with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True
661
  run_button.click(
662
  fn=process_and_handle_errors,
663
  inputs=[input_image, caption_type, caption_length, extra_options, name_input, custom_prompt, lens_type, film_stock, composition_style, lighting_aspect, special_technique, color_effect],
664
- outputs=[error_message, output_caption]
665
  )
666
 
667
  login_button.click(
 
608
 
609
  with gr.Column():
610
  error_message = gr.Markdown(visible=False)
611
+ output_prompt = gr.Textbox(label="Prompt that was used")
612
  output_caption = gr.Textbox(label="Generated Caption")
613
 
614
  run_button = gr.Button("Make My Caption!")
615
 
 
616
  with gr.Accordion("Advanced Options for Style Prompt", open=False, visible=False) as advanced_options:
617
  gr.Markdown("### Advanced Options for Style Prompt")
618
  lens_type = gr.Dropdown(
 
661
  run_button.click(
662
  fn=process_and_handle_errors,
663
  inputs=[input_image, caption_type, caption_length, extra_options, name_input, custom_prompt, lens_type, film_stock, composition_style, lighting_aspect, special_technique, color_effect],
664
+ outputs=[error_message, output_prompt, output_caption]
665
  )
666
 
667
  login_button.click(