FrostIce commited on
Commit
64b99fb
·
verified ·
1 Parent(s): 2ab74b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -169,11 +169,16 @@ if __name__ == '__main__':
169
  gr_btn_submit = gr.Button(value='Tagging', variant='primary')
170
 
171
  with gr.Column():
172
- gr_output_text = gr.TextArea(label='Exported Text')
 
 
 
 
 
173
 
174
  gr_btn_submit.click(
175
  image_to_wd14_tags,
176
  inputs=[gr_input_image, gr_model, gr_threshold, gr_space, gr_escape, gr_confidence, gr_order],
177
- outputs=[gr_output_text],
178
  )
179
  demo.launch()
 
169
  gr_btn_submit = gr.Button(value='Tagging', variant='primary')
170
 
171
  with gr.Column():
172
+ gr_ratings = gr.Label(label='Ratings')
173
+ with gr.Tabs():
174
+ with gr.Tab("Tags"):
175
+ gr_tags = gr.Label(label='Tags')
176
+ with gr.Tab("Exported Text"):
177
+ gr_output_text = gr.TextArea(label='Exported Text')
178
 
179
  gr_btn_submit.click(
180
  image_to_wd14_tags,
181
  inputs=[gr_input_image, gr_model, gr_threshold, gr_space, gr_escape, gr_confidence, gr_order],
182
+ outputs=[gr_ratings, gr_output_text, gr_tags],
183
  )
184
  demo.launch()