NickyNicky commited on
Commit
b599b54
1 Parent(s): ff3bfde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -48,6 +48,20 @@ def gen_conversation(text,max_new_tokens=100):
48
  return tokenizer2.decode(output_tokens[0], skip_special_tokens=True).split("\n")[-1].replace("output:","")
49
 
50
  conversacion = ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  def speech_to_text(audio_file, texto_adicional):
52
  global conversacion
53
  if audio_file is not None:
@@ -72,7 +86,7 @@ iface = gr.Interface(
72
  inputs=[gr.inputs.Audio(label="Voz", type="filepath"), gr.inputs.Textbox(label="Texto adicional")],
73
  outputs=gr.outputs.HTML(label=["chatbot","state"]),
74
  title="Chat bot para empresas.",
75
- description="Este modelo convierte la entrada de voz o texto y hace inferencia",
76
  examples=list_audios,
77
  theme="default",
78
  layout="vertical",
 
48
  return tokenizer2.decode(output_tokens[0], skip_special_tokens=True).split("\n")[-1].replace("output:","")
49
 
50
  conversacion = ""
51
+ description="""
52
+ Este proyecto nace de la idea de construir agentes virtuales especializados en temas académicos o nichos de negocio.
53
+ Para esto fueron creados dos dataset principales, uno basado en habilidades blandas y otro basado en conversaciones empresariales donde un agente humano atiende a un cliente de la empresa en cuestión.
54
+ Para ejecutar esta tarea, se han empleado múltiples LLMs, entre ellos:
55
+
56
+ - Alpaca native: https://huggingface.co/hackathon-somos-nlp-2023/salsapaca-native
57
+ - Bertin: https://huggingface.co/hackathon-somos-nlp-2023/bertin-gpt-j-6B-es-finetuned-salpaca
58
+ - Bloom: https://huggingface.co/hackathon-somos-nlp-2023/SalpiBloom-1b1
59
+ - Bloomz: https://huggingface.co/hackathon-somos-nlp-2023/SalpiBloomZ_15949_input_512-1b7
60
+ - Dolly: https://huggingface.co/hackathon-somos-nlp-2023/dolly-ArepacaV1
61
+ - Cerebras: https://huggingface.co/hackathon-somos-nlp-2023/Cerebras-Cabritax-softskills-espaGPT-1.3B
62
+
63
+ Teniendo como mejor resultado el modelo basado en BloomZ, el cual es el prensentado en esta demo.
64
+ """
65
  def speech_to_text(audio_file, texto_adicional):
66
  global conversacion
67
  if audio_file is not None:
 
86
  inputs=[gr.inputs.Audio(label="Voz", type="filepath"), gr.inputs.Textbox(label="Texto adicional")],
87
  outputs=gr.outputs.HTML(label=["chatbot","state"]),
88
  title="Chat bot para empresas.",
89
+ description=description #"Este modelo convierte la entrada de voz o texto y hace inferencia",
90
  examples=list_audios,
91
  theme="default",
92
  layout="vertical",