geronimo-pericoli commited on
Commit
9e8340b
·
verified ·
1 Parent(s): b599c44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -539,15 +539,13 @@ with gr.Blocks(theme='sudeepshouche/minimalist', css=css) as demo:
539
  return new_chat_history
540
 
541
 
542
- def respond(message, chat_history):
543
  global chat_history_engine
544
  global result_metadata
545
  global result_texts
546
  global final_response
547
  global query
548
 
549
- profile = "no-ingresado"
550
-
551
  if profile is not None:
552
  # Inicializar el historial de chat si está vacío con el mensaje del usuario actual
553
  if not chat_history:
@@ -587,6 +585,8 @@ with gr.Blocks(theme='sudeepshouche/minimalist', css=css) as demo:
587
  yield "", simulated_chat_history
588
 
589
 
 
 
590
  gr.Markdown("""
591
  # PharmaWise GMP Colombia Chat 4.7
592
  Realiza preguntas a tus datos y obtén al final del texto las paginas y documentos utilizados generar tu responder.
 
539
  return new_chat_history
540
 
541
 
542
+ def respond(message, chat_history, profile: gr.OAuthProfile | None):
543
  global chat_history_engine
544
  global result_metadata
545
  global result_texts
546
  global final_response
547
  global query
548
 
 
 
549
  if profile is not None:
550
  # Inicializar el historial de chat si está vacío con el mensaje del usuario actual
551
  if not chat_history:
 
585
  yield "", simulated_chat_history
586
 
587
 
588
+ gr.LoginButton(value="Ingresar", size="sm", min_width=220, icon=None, logout_value= "Salir ({})")
589
+
590
  gr.Markdown("""
591
  # PharmaWise GMP Colombia Chat 4.7
592
  Realiza preguntas a tus datos y obtén al final del texto las paginas y documentos utilizados generar tu responder.