CosmoAI commited on
Commit
c2b2e2c
·
1 Parent(s): f50380b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -28,8 +28,13 @@ def bardChat(data):
28
  # Create a Bard object with the session and a timeout of 30 seconds
29
  bard = Bard(session=session, timeout=30)
30
  answer = bard.get_answer(data)['content']
 
 
 
 
 
31
  # print(answer)
32
- return answer
33
 
34
  def responsenew(data):
35
  return bardChat(data)
 
28
  # Create a Bard object with the session and a timeout of 30 seconds
29
  bard = Bard(session=session, timeout=30)
30
  answer = bard.get_answer(data)['content']
31
+ respo = {
32
+ "message": answer,
33
+ "action": "nothing",
34
+ "function": "nothing"
35
+ }
36
  # print(answer)
37
+ return respo
38
 
39
  def responsenew(data):
40
  return bardChat(data)