Spaces:
Build error
Build error
Update main.py
Browse files205 unmodified lines206207208209210211212205 unmodified lines1, # int | float (numeric value between 1 and 100) in 'Refiner Number of Iterations %' Slider componentapi_name="/predict")image_url = resultwith open(image_url, 'rb') as img_file:img_binary = img_file.read()img_base64 = base64.b64encode(img_binary).decode('utf-8')205 unmodified lines206207208209210211212205 unmodified lines1, # int | float (numeric value between 1 and 100) in 'Refiner Number of Iterations %' Slider componentapi_name="/predict")image_url = result[0]with open(image_url, 'rb') as img_file:img_binary = img_file.read()img_base64 = base64.b64encode(img_binary).decode('utf-8')
main.py+1-1