ConectaODSco commited on
Commit
a8ad9af
·
verified ·
1 Parent(s): 28384ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -2874,22 +2874,22 @@ def crear_app():
2874
  # with gr.Tab("🏷️ 19. Resumen Tags"):
2875
  with gr.Row():
2876
  with gr.Row():
2877
- with gr.Column(scale=1):
2878
- html19_1_pmt = gr.HTML(label="Resumen en Tags")
2879
 
2880
- with gr.Row(visible=False):
2881
- html19_2_pmt = gr.HTML(label="Resumen en Tags")
2882
- # with gr.Column(scale=4):
2883
- html19_3_pmt = gr.HTML(label="Resumen en Tags")
2884
 
2885
- with gr.Column(scale=4):
2886
 
2887
 
2888
  file_output.change(leer_tabla,
2889
  file_output,
2890
  df_tx_iniciativas)
2891
 
2892
- with gr.Row():
2893
  def burbuja_nini(n_iniciativas):
2894
  try:
2895
  return f"""<div style="margin-bottom: 40px;">
@@ -2903,14 +2903,14 @@ def crear_app():
2903
  </div>"""
2904
  except:
2905
  return ""
2906
- n_ini_state = gr.State()
2907
  html_nini = gr.HTML()
2908
  file_output.change(num_iniciaticas, file_output, n_ini_state)
2909
  n_ini_state.change(burbuja_nini, n_ini_state, html_nini)
2910
- with gr.Column():
2911
- img24_pmt = gr.Image(label="Nube de Palabras", type="filepath")
2912
- with gr.Column(visible=False):
2913
- exp24 = gr.Markdown()
2914
 
2915
  # btn23 = gr.Button("🔄 Generar Nube de Palabras", variant="primary")
2916
  df_tx_iniciativas.change(
 
2874
  # with gr.Tab("🏷️ 19. Resumen Tags"):
2875
  with gr.Row():
2876
  with gr.Row():
2877
+ # with gr.Column(scale=1):
2878
+ # html19_1_pmt = gr.HTML(label="Resumen en Tags")
2879
 
2880
+ # with gr.Row(visible=False):
2881
+ # html19_2_pmt = gr.HTML(label="Resumen en Tags")
2882
+ # # with gr.Column(scale=4):
2883
+ # html19_3_pmt = gr.HTML(label="Resumen en Tags")
2884
 
2885
+ # with gr.Column(scale=4):
2886
 
2887
 
2888
  file_output.change(leer_tabla,
2889
  file_output,
2890
  df_tx_iniciativas)
2891
 
2892
+ with gr.Column(scale=1):
2893
  def burbuja_nini(n_iniciativas):
2894
  try:
2895
  return f"""<div style="margin-bottom: 40px;">
 
2903
  </div>"""
2904
  except:
2905
  return ""
2906
+ n_ini_state = gr.State(value=0)
2907
  html_nini = gr.HTML()
2908
  file_output.change(num_iniciaticas, file_output, n_ini_state)
2909
  n_ini_state.change(burbuja_nini, n_ini_state, html_nini)
2910
+ with gr.Column(scale=5):
2911
+ img24_pmt = gr.Image(label="Nube de Palabras", type="filepath")
2912
+ with gr.Column(visible=False):
2913
+ exp24 = gr.Markdown()
2914
 
2915
  # btn23 = gr.Button("🔄 Generar Nube de Palabras", variant="primary")
2916
  df_tx_iniciativas.change(