Ruggero1912 commited on
Commit
e14a05d
·
1 Parent(s): 0e1bc9b

feat: update Gradio interface to include annotated image section and refine caption generation status message

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -955,7 +955,6 @@ def create_gradio_interface(model_config_name : str):
955
 
956
  > Tip: Use the Layer tool to generate multiple captions for different traces.
957
 
958
- **Model:** Using `{model_config_name}` configuration (automatically loaded)
959
  """)
960
 
961
  # Initialize model status
@@ -1026,6 +1025,7 @@ def create_gradio_interface(model_config_name : str):
1026
  )
1027
 
1028
  with gr.Column():
 
1029
  output_image = gr.Image(
1030
  label="Annotated Image",
1031
  type="pil",
@@ -1110,7 +1110,7 @@ def create_gradio_interface(model_config_name : str):
1110
  # First yield: Show processing status
1111
  yield (
1112
  "⏳ Processing your request...",
1113
- gr.update(elem_id="status_message_textarea", value="🔄 **Generating caption...** Please wait.", visible=True),
1114
  None
1115
  )
1116
 
 
955
 
956
  > Tip: Use the Layer tool to generate multiple captions for different traces.
957
 
 
958
  """)
959
 
960
  # Initialize model status
 
1025
  )
1026
 
1027
  with gr.Column():
1028
+ gr.Markdown("### 🖼️ Annotated Image")
1029
  output_image = gr.Image(
1030
  label="Annotated Image",
1031
  type="pil",
 
1110
  # First yield: Show processing status
1111
  yield (
1112
  "⏳ Processing your request...",
1113
+ gr.update(elem_id="status_message_textarea", value="🔄 Generating caption... Please wait.", visible=True),
1114
  None
1115
  )
1116