Spaces:
Sleeping
Sleeping
Update main.py
Browse files469 unmodified lines4704714724734744754764774784793 unmodified lines483484485486487488489469 unmodified lines"8-Step",api_name="/generate_image")else:client = Client("https://playgroundai-playground-v2-5.hf.space/--replicas/9kuov/")result = client.predict(input_data.input, # str in 'Prompt' Textbox componentinput_data.negativePrompt, # str in 'Negative prompt' Textbox componentTrue, # bool in 'Use negative prompt' Checkbox component0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component3 unmodified linesTrue, # bool in 'Randomize seed' Checkbox componentapi_name="/run")image_url = resultprint(image_url)with open(image_url, 'rb') as img_file:img_binary = img_file.read()469 unmodified lines4704714724734744754764774784794804813 unmodified lines485486487488489490491469 unmodified lines"8-Step",api_name="/generate_image")image_url = resultelse:#client = Client("https://playgroundai-playground-v2-5.hf.space/--replicas/9kuov/")client = Client("https://choimirai-playground-v2-5.hf.space/--replicas/bgsav/")result = client.predict(input_data.input, # str in 'Prompt' Textbox componentinput_data.negativePrompt, # str in 'Negative prompt' Textbox componentTrue, # bool in 'Use negative prompt' Checkbox component0, # float (numeric value between 0 and 2147483647) in 'Seed' Slider component3 unmodified linesTrue, # bool in 'Randomize seed' Checkbox componentapi_name="/run")image_url = result.imageprint(image_url)with open(image_url, 'rb') as img_file:img_binary = img_file.read()
main.py+5-3