Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,12 @@ palm.configure(api_key=os.environ["PALM_KEY"])
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
-
def responsenew(
|
| 50 |
idval = uuid.uuid4()
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
|
|
| 54 |
response = palm.chat( messages=data)
|
| 55 |
print(response)
|
| 56 |
if data is not None:
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
+
def responsenew(data):
|
| 50 |
idval = uuid.uuid4()
|
| 51 |
+
print(data)
|
| 52 |
+
# text = json.loads(query)
|
| 53 |
+
# data = text['text']
|
| 54 |
+
# uid = text['uid']
|
| 55 |
response = palm.chat( messages=data)
|
| 56 |
print(response)
|
| 57 |
if data is not None:
|