| 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) |
| 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) |