juancamval commited on
Commit
23019d7
·
verified ·
1 Parent(s): dc71bb1

Update app.py

Browse files

Eliminacion de css en el titulo

Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -36,7 +36,7 @@ def borrar_entrada(texto_entrada):
36
 
37
  with gr.Blocks() as interfaz_traductor:
38
  """
39
- Define la interfaz gráfica de la aplicación de traducción de inglés a español con título centralizado y fuente Roboto (intento con CSS).
40
  """
41
  gr.HTML("""
42
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
@@ -44,10 +44,8 @@ with gr.Blocks() as interfaz_traductor:
44
  body, button, input, textarea, div {
45
  font-family: 'Roboto', sans-serif !important;
46
  }
47
- h1 {
48
- text-align: center;
49
- }
50
  </style>
 
51
  """)
52
  with gr.Row():
53
  with gr.Column():
@@ -55,7 +53,7 @@ with gr.Blocks() as interfaz_traductor:
55
  boton_borrar = gr.Button("Borrar todo")
56
  with gr.Column():
57
  texto_salida_es = gr.Textbox(label="Traducción al español", placeholder="La traducción aparecerá aquí", interactive=False, lines=10)
58
- gr.Markdown("*Puedes copiar el texto traducido seleccionándolo y usando Ctrl+C (o Cmd+C en macOS).*")
59
 
60
  texto_entrada_en.change(traducir_texto, inputs=texto_entrada_en, outputs=texto_salida_es)
61
  boton_borrar.click(borrar_entrada, inputs=texto_entrada_en, outputs=texto_entrada_en)
 
36
 
37
  with gr.Blocks() as interfaz_traductor:
38
  """
39
+ Define la interfaz gráfica de la aplicación de traducción de inglés a español con título centralizado y fuente Roboto (intento corregido).
40
  """
41
  gr.HTML("""
42
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
 
44
  body, button, input, textarea, div {
45
  font-family: 'Roboto', sans-serif !important;
46
  }
 
 
 
47
  </style>
48
+ <h1 style='text-align: center; font-family: Roboto, sans-serif;'>Traductor Inglés a Español</h1>
49
  """)
50
  with gr.Row():
51
  with gr.Column():
 
53
  boton_borrar = gr.Button("Borrar todo")
54
  with gr.Column():
55
  texto_salida_es = gr.Textbox(label="Traducción al español", placeholder="La traducción aparecerá aquí", interactive=False, lines=10)
56
+ gr.Markdown("*Puedes copiar el texto traducido seleccionándolo y usando Ctrl+C (o Cmd+C en macOS).*", styles={"font-family": "Roboto, sans-serif"})
57
 
58
  texto_entrada_en.change(traducir_texto, inputs=texto_entrada_en, outputs=texto_salida_es)
59
  boton_borrar.click(borrar_entrada, inputs=texto_entrada_en, outputs=texto_entrada_en)