aldohenrique commited on
Commit
d9fcab3
·
verified ·
1 Parent(s): d9af143

Update interface.py

Browse files
Files changed (1) hide show
  1. interface.py +15 -13
interface.py CHANGED
@@ -19,10 +19,10 @@ css_customizado = """
19
  div.svelte-1xp0cw7 {display: grid !important;}
20
  #id {height:33vh !important;}
21
  #entrada_usuario textarea {
22
- color: white !important;
23
- font-size: x-large !important;
24
- background-color: #1a1a1a !important; /* opcional: fundo escuro para combinar com o texto branco */
25
  }
 
 
26
  """
27
 
28
  def criar_interface():
@@ -35,6 +35,18 @@ def criar_interface():
35
  </div>
36
  """)
37
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  chatbot = gr.Chatbot(label="💬 Chat com Dr. Aldo", elem_id="chat")
39
 
40
  with gr.Row():
@@ -54,16 +66,6 @@ def criar_interface():
54
  elem_id="entrada_usuario"
55
  )
56
  enviar_btn = gr.Button("Enviar", variant="primary")
57
- gr.HTML("""
58
- <script>
59
- window.addEventListener("load", function() {
60
- const caixa = document.querySelector("#entrada_usuario textarea");
61
- if (caixa) {
62
- setTimeout(() => caixa.focus(), 100);
63
- }
64
- });
65
- </script>
66
- """)
67
 
68
  def responder(chat_history, user_msg, modelo):
69
  if not user_msg.strip():
 
19
  div.svelte-1xp0cw7 {display: grid !important;}
20
  #id {height:33vh !important;}
21
  #entrada_usuario textarea {
22
+ color: white !important; font-size: x-large !important; background-color: #1a1a1a !important; /* opcional: fundo escuro para combinar com o texto branco */
 
 
23
  }
24
+ color: white;
25
+ .message-content{font-size: larger; color: white !important; background-color: #1a1a1a !important; }
26
  """
27
 
28
  def criar_interface():
 
35
  </div>
36
  """)
37
 
38
+
39
+ gr.HTML("""
40
+ <script>
41
+ window.addEventListener("load", function() {
42
+ const caixa = document.querySelector("#entrada_usuario textarea");
43
+ if (caixa) {
44
+ setTimeout(() => caixa.focus(), 100);
45
+ }
46
+ });
47
+ </script>
48
+ """)
49
+
50
  chatbot = gr.Chatbot(label="💬 Chat com Dr. Aldo", elem_id="chat")
51
 
52
  with gr.Row():
 
66
  elem_id="entrada_usuario"
67
  )
68
  enviar_btn = gr.Button("Enviar", variant="primary")
 
 
 
 
 
 
 
 
 
 
69
 
70
  def responder(chat_history, user_msg, modelo):
71
  if not user_msg.strip():