Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Abhinit
/
hw6
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
34c1fc5
hw6
/
test_client.py
abhinit-modi
simple_chain_test
ac87f90
4 months ago
raw
Copy download link
history
blame
Safe
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
)