".github/git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "a5cf2a5362e752beb927bdf3f0785475cf24a64f"
Commit dd7646ef authored by Neelay Shah's avatar Neelay Shah Committed by GitHub
Browse files

chore: remove debug statements (#57)

parent 602352ce
......@@ -61,11 +61,8 @@ class DynamoClient:
# TODO: Potentially model dump for a user here so they can pass around Pydantic models
stream = await client.generate(*args, **kwargs)
print("here8", stream, flush=True)
async for item in stream:
print(item, flush=True)
data = item.data()
print(f"Item data: {data}")
await queue.put(data)
await queue.put(None)
except Exception:
......@@ -90,11 +87,8 @@ class DynamoClient:
)
stream = await client.generate(*args, **kwargs)
print(stream, flush=True)
async for item in stream:
print(item, flush=True)
data = item.data()
print(f"Item data: {data}")
await queue.put(data)
await queue.put(None)
except Exception:
......
......@@ -63,7 +63,6 @@ class Backend:
@dynamo_endpoint()
async def generate(self, req: RequestType):
"""Generate tokens."""
print("here2")
req_text = req.text
print(f"Backend received: {req_text}")
text = f"{req_text}-back"
......@@ -89,7 +88,6 @@ class Middle:
print(f"Middle received: {req_text}")
text = f"{req_text}-mid"
next_request = RequestType(text=text).model_dump_json()
print("here5")
async for response in self.backend.generate(next_request):
print(f"Middle received response: {response}")
yield f"Middle: {response}"
......
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