updated the endpoint
Browse files
App/Chat/utils/Summarize.py
CHANGED
@@ -103,8 +103,9 @@ async def PalmTextModel(text, candidates=1):
|
|
103 |
# for candidate in result["candidates"]
|
104 |
# ]
|
105 |
# return temp
|
106 |
-
temp = result["choices"][0]["message"]["content"]
|
107 |
-
|
|
|
108 |
return temp
|
109 |
else:
|
110 |
print(f"Error: {response.status}\n{await response.text()}")
|
|
|
103 |
# for candidate in result["candidates"]
|
104 |
# ]
|
105 |
# return temp
|
106 |
+
# temp = result["choices"][0]["message"]["content"]
|
107 |
+
temp="hello"
|
108 |
+
print('lo ')
|
109 |
return temp
|
110 |
else:
|
111 |
print(f"Error: {response.status}\n{await response.text()}")
|