faelfernandes commited on
Commit
2400931
1 Parent(s): 2e1fefa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -26,41 +26,42 @@ async def process_tts(text, voice):
26
 
27
  css = """
28
  .gradio-container {
 
 
 
 
29
  color: black !important;
30
- background-color: white !important;
31
  }
32
 
33
- .dark {
34
- background-color: white !important;
 
35
  }
36
 
37
- .dark * {
38
  color: black !important;
39
  }
40
 
41
- .container {
42
- max-width: 800px;
43
- margin: 0 auto;
44
- padding: 20px;
45
- background-color: white !important;
46
- border-radius: 10px;
47
- box-shadow: 0 0 10px rgba(0,0,0,0.1);
48
  }
49
 
50
- h1, label, p {
 
51
  color: black !important;
52
  }
53
 
54
  .footer {
55
  text-align: center;
56
  margin-top: 50px;
57
- color: #7f8c8d !important;
58
  font-size: 0.9em;
59
  }
60
  """
61
 
62
- with gr.Blocks(css=css, theme=gr.themes.Default()) as iface:
63
- with gr.Column(elem_classes="container"):
64
  gr.Markdown("# TSM - Texto em Voz")
65
  gr.Markdown("Converta texto em fala usando vozes em português e multilíngues.")
66
 
@@ -78,8 +79,8 @@ with gr.Blocks(css=css, theme=gr.themes.Default()) as iface:
78
  value="Francisca"
79
  )
80
 
81
- convert_button = gr.Button("Converter para Áudio", variant="primary")
82
- audio_output = gr.Audio(label="Áudio Gerado")
83
 
84
  gr.Markdown(
85
  """
@@ -87,8 +88,7 @@ with gr.Blocks(css=css, theme=gr.themes.Default()) as iface:
87
  <p>Desenvolvido por [TSM LTDA] © 2022-2024</p>
88
  <p>Powered by Azure Text-to-Speech</p>
89
  </div>
90
- """,
91
- elem_classes="footer"
92
  )
93
 
94
  convert_button.click(process_tts, inputs=[text_input, voice], outputs=[audio_output])
 
26
 
27
  css = """
28
  .gradio-container {
29
+ background: white !important;
30
+ }
31
+
32
+ .label {
33
  color: black !important;
 
34
  }
35
 
36
+ .gr-box {
37
+ background: white !important;
38
+ color: black !important;
39
  }
40
 
41
+ .gr-input {
42
  color: black !important;
43
  }
44
 
45
+ .gr-button {
46
+ background: #2196F3 !important;
47
+ color: white !important;
 
 
 
 
48
  }
49
 
50
+ .gr-form {
51
+ background: white !important;
52
  color: black !important;
53
  }
54
 
55
  .footer {
56
  text-align: center;
57
  margin-top: 50px;
58
+ color: #666 !important;
59
  font-size: 0.9em;
60
  }
61
  """
62
 
63
+ with gr.Blocks(theme=gr.themes.Light(), css=css) as iface:
64
+ with gr.Column():
65
  gr.Markdown("# TSM - Texto em Voz")
66
  gr.Markdown("Converta texto em fala usando vozes em português e multilíngues.")
67
 
 
79
  value="Francisca"
80
  )
81
 
82
+ convert_button = gr.Button("Converter para Áudio")
83
+ audio_output = gr.Audio(label="Áudio Gerado", interactive=True)
84
 
85
  gr.Markdown(
86
  """
 
88
  <p>Desenvolvido por [TSM LTDA] © 2022-2024</p>
89
  <p>Powered by Azure Text-to-Speech</p>
90
  </div>
91
+ """
 
92
  )
93
 
94
  convert_button.click(process_tts, inputs=[text_input, voice], outputs=[audio_output])