giannantonio15 commited on
Commit
2f7a54a
1 Parent(s): ea0722b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -395,9 +395,8 @@ def main():
395
  return "", history + [[user_message, None]]
396
 
397
  @spaces.GPU(duration=120)
398
- def bot(msg, history):
399
- print(history)
400
- print(msg)
401
  global chat_engine_bandi
402
  global chat_engine_bandi_sistema_puglia
403
  global memory_bandi
@@ -513,7 +512,7 @@ def main():
513
 
514
 
515
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
516
- bot, [msg, chatbot], [chatbot, divDocumenti]
517
  )
518
 
519
  demo.queue()
 
395
  return "", history + [[user_message, None]]
396
 
397
  @spaces.GPU(duration=120)
398
+ def bot(history):
399
+ userMessage = history[0][0]
 
400
  global chat_engine_bandi
401
  global chat_engine_bandi_sistema_puglia
402
  global memory_bandi
 
512
 
513
 
514
  msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
515
+ bot, chatbot, [chatbot, divDocumenti]
516
  )
517
 
518
  demo.queue()