fix : serverbug

This commit is contained in:
martin legrand
2025-03-29 13:25:26 +01:00
parent 32b17c3373
commit 4676b817e9
2 changed files with 6 additions and 5 deletions
+6 -3
View File
@@ -1,5 +1,4 @@
from flask import jsonify
import threading
import logging
from abc import abstractmethod
@@ -47,7 +46,7 @@ class GeneratorLLM():
def get_status(self) -> dict:
with self.state.lock:
return jsonify(self.state.status())
return self.state.status()
@abstractmethod
def generate(self, history: list) -> None:
@@ -58,4 +57,8 @@ class GeneratorLLM():
returns:
None
"""
pass
pass
if __name__ == "__main__":
generator = GeneratorLLM()
generator.get_status()