Update appChatbot.py
Browse files- appChatbot.py +7 -6
appChatbot.py
CHANGED
@@ -107,17 +107,18 @@ def respond(
|
|
107 |
temperature=temperature,
|
108 |
top_p=top_p,
|
109 |
):
|
110 |
-
|
|
|
111 |
token = message.choices[0].delta.content
|
112 |
|
|
|
|
|
113 |
response += token
|
114 |
-
|
115 |
-
print ("
|
116 |
-
print ("token::",token)
|
117 |
-
print ("response::",response)
|
118 |
-
print ("query_chromadb::",query_chromadb("how could an AI be used in smart water management systems?"))
|
119 |
|
120 |
yield response
|
|
|
121 |
#yield query_chromadb(message)
|
122 |
|
123 |
|
|
|
107 |
temperature=temperature,
|
108 |
top_p=top_p,
|
109 |
):
|
110 |
+
print ("**message :: ",message)
|
111 |
+
|
112 |
token = message.choices[0].delta.content
|
113 |
|
114 |
+
print ("**token :: ",token)
|
115 |
+
|
116 |
response += token
|
117 |
+
|
118 |
+
print ("**response :: ",response)
|
|
|
|
|
|
|
119 |
|
120 |
yield response
|
121 |
+
print ("**query_chromadb::",query_chromadb("how could an AI be used in smart water management systems?"))
|
122 |
#yield query_chromadb(message)
|
123 |
|
124 |
|