File size: 206 Bytes
ac87f90
 
 
 
 
1
2
3
4
5
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)