Commit 7f127cf5 authored by kurumuz's avatar kurumuz

maybe this works

parent 2b144b8c
......@@ -271,7 +271,7 @@ async def predict_tags(request: TextRequest, authorized: bool = Depends(verify_t
process_time = time.perf_counter() - t
logger.info(f"Request took {process_time:0.3f} seconds")
return TagOutput(tags=tags)
return TagOutput(tags=[Tags(tag=tag, count=count) for tag, count in tags])
except Exception as e:
traceback.print_exc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment