🏃 fix: run function

This commit is contained in:
Florian Hönicke
2023-05-11 21:53:21 +02:00
parent 840a19aadf
commit b337f74d24
3 changed files with 3 additions and 3 deletions

View File

@@ -11,5 +11,5 @@ class DevGPTExecutor(Executor):
@jina_requests()
def endpoint(self, docs: DocumentArray, **kwargs) -> DocumentArray:
for d in docs:
d.text = json.dumps(func(json.loads(d.text)))
d.text = func(d.text)
return docs