def handler(endpoint):
if endpoint == "stream_response":
yield stream_response()
elif endpoint == "get_response":
return get_response()
runpod.serverless.start(
{
"handler": handler,
"return_aggregate_stream": True
}
)
def handler(endpoint):
if endpoint == "stream_response":
yield stream_response()
elif endpoint == "get_response":
return get_response()
runpod.serverless.start(
{
"handler": handler,
"return_aggregate_stream": True
}
)