Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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)
|