polejowska commited on
Commit
1e694a8
1 Parent(s): ef25264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -111,15 +111,14 @@ with gr.Blocks(css=css) as app:
111
  img_output_from_upload = gr.Image(shape=(850, 850))
112
  with gr.TabItem("Attention maps visualization"):
113
  with gr.Row():
114
- with gr.Column():
115
- gr.Markdown("""Encoder attentions""")
116
- encoder_att_map_output = gr.Image(shape=(850, 850))
117
- with gr.Column():
118
- gr.Markdown("""Decoder attentions""")
119
- decoder_att_map_output = gr.Image(shape=(850, 850))
120
- with gr.Column():
121
- gr.Markdown("""Cross attentions""")
122
- cross_att_map_output = gr.Image(shape=(850, 850))
123
  with gr.TabItem("Model details"):
124
  with gr.Row():
125
  model_details = gr.Markdown(""" """)
 
111
  img_output_from_upload = gr.Image(shape=(850, 850))
112
  with gr.TabItem("Attention maps visualization"):
113
  with gr.Row():
114
+ gr.Markdown("""Encoder attentions""")
115
+ encoder_att_map_output = gr.Image(shape=(850, 850))
116
+ with gr.Row():
117
+ gr.Markdown("""Decoder attentions""")
118
+ decoder_att_map_output = gr.Image(shape=(850, 850))
119
+ with gr.Row():
120
+ gr.Markdown("""Cross attentions""")
121
+ cross_att_map_output = gr.Image(shape=(850, 850))
 
122
  with gr.TabItem("Model details"):
123
  with gr.Row():
124
  model_details = gr.Markdown(""" """)