Merge branch 'main' into fixes-today

This commit is contained in:
AndzejsP 2023-06-01 12:09:21 +03:00
commit 410ffe8d02
4 changed files with 7 additions and 5 deletions

7
app.py
View File

@ -1010,6 +1010,7 @@ if __name__ == "__main__":
print("debug mode:true")
else:
print("debug mode:false")
http_server = WSGIServer((config["host"], config["port"]), app, handler_class=WebSocketHandler)
http_server.serve_forever()
socketio.run(app, host=config["host"], port=config["port"])
# http_server = WSGIServer((config["host"], config["port"]), app, handler_class=WebSocketHandler)
# http_server.serve_forever()

View File

@ -101,7 +101,7 @@ class CTRansformers(LLMBinding):
"""
try:
output = ""
self.model.reset()
#self.model.reset()
tokens = self.model.tokenize(prompt)
count = 0
for tok in self.model.generate(

View File

@ -1 +1 @@
llama-cpp-python
llama-cpp-python==0.1.53

View File

@ -11,5 +11,6 @@ services:
- ./models:/srv/models
- ./configs:/srv/configs
- ./personalities:/srv/personalities
- ./web:/srv/web
ports:
- "9600:9600"