MCPcopy Create free account
hub / github.com/NVIDIA/FastPhotoStyle / get_confirm_token

Function get_confirm_token

download_models.py:18–23  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

16 save_response_content(response, destination)
17
18def get_confirm_token(response):
19 for key, value in response.cookies.items():
20 if key.startswith('download_warning'):
21 return value
22
23 return None
24
25def save_response_content(response, destination):
26 CHUNK_SIZE = 32768

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected