Spaces:
Runtime error
Runtime error
Update app.py
Browse files25 unmodified lines2627282930313233343536373825 unmodified linesprocess_result = triposr_client.predict(file_path, # filepath in 'Input Image' Image componentTrue, # bool in 'Remove Background' Checkbox component0.5, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider componentapi_name="/preprocess")print(type(process_result))result = triposr_client.predict(process_result, # filepath in 'Processed Image' Image component32, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider componentapi_name="/generate")output = result[0]25 unmodified lines2627282930313233343536373825 unmodified linesprocess_result = triposr_client.predict(file_path, # filepath in 'Input Image' Image componentTrue, # bool in 'Remove Background' Checkbox component0.85, # float (numeric value between 0.5 and 1.0) in 'Foreground Ratio' Slider componentapi_name="/preprocess")print(type(process_result))result = triposr_client.predict(process_result, # filepath in 'Processed Image' Image component256, # float (numeric value between 32 and 320) in 'Marching Cubes Resolution' Slider componentapi_name="/generate")output = result[0]
app.py+2-2