hw6 / test_client.py
abhinit-modi
simple_chain_test
ac87f90
raw
history blame
206 Bytes
from langserve import RemoteRunnable
chain = RemoteRunnable("http://localhost:8000/simple")
stream = chain.stream(input={'question':'How are you?'})
for chunk in stream:
print(chunk, end="", flush=True)