





"""simple docstring"""





import socket


def       a__					(					):




		"""simple docstring"""


		UpperCamelCase   =	socket.socket(socket.AF_INET  ,	socket.SOCK_STREAM    )
		UpperCamelCase   =	socket.gethostname()
		UpperCamelCase   =	12_312

		sock.connect((host, port)    )
		sock.send(B"Hello server!"    )

		with open("Received_file"  ,	"wb"    ) as out_file:
				print("File opened"    )
				print("Receiving data..."    )
				while True:
						UpperCamelCase   =	sock.recv(1_024    )
						if not data:
								break
						out_file.write(lowerCAmelCase__    )

		print("Successfully received the file"    )
		sock.close()
		print("Connection closed"    )


if __name__ == "__main__":
						main()













"""simple docstring"""





import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowerCAmelCase__     			=			HUGGINGFACE_HUB_CACHE


lowerCAmelCase__     			=			'''config.json'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.bin'''
lowerCAmelCase__     			=			'''diffusion_flax_model.msgpack'''
lowerCAmelCase__     			=			'''model.onnx'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.safetensors'''
lowerCAmelCase__     			=			'''weights.pb'''
lowerCAmelCase__     			=			'''https://huggingface.co'''
lowerCAmelCase__     			=			default_cache_path
lowerCAmelCase__     			=			'''diffusers_modules'''
lowerCAmelCase__     			=			os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
lowerCAmelCase__     			=			['''fp16''', '''non-ema''']
lowerCAmelCase__     			=			'''.self_attn'''






