JSAV commited on
Commit
369a119
1 Parent(s): 0570e79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,7 +3,8 @@ from SysPrompt import sysPrompt
3
  from index_query import get_docs
4
  from ChatResponse import get_completion_from_messages, template
5
  from SendWA import sendWA
6
-
 
7
  def res(prompt, historial):
8
  # Preparar historial
9
  #historial=json.loads(historial)
@@ -28,6 +29,7 @@ def respond(message, chat_history, history):
28
  response= res(message,history)
29
  bot_message = response[0]
30
  chat_history.append((message, bot_message))
 
31
  return "", chat_history,response[1]
32
 
33
  def WA(history):
 
3
  from index_query import get_docs
4
  from ChatResponse import get_completion_from_messages, template
5
  from SendWA import sendWA
6
+ from List_Sharepoint import upload_list_sharepoint
7
+
8
  def res(prompt, historial):
9
  # Preparar historial
10
  #historial=json.loads(historial)
 
29
  response= res(message,history)
30
  bot_message = response[0]
31
  chat_history.append((message, bot_message))
32
+ upload_list_sharepoint("xxxxxx","Anonymous",message,bot_message)
33
  return "", chat_history,response[1]
34
 
35
  def WA(history):