Spaces:
Runtime error
Runtime error
Update app.py
Browse files103 unmodified lines104105106107108109110103 unmodified linesexcept Exception as e:print(f"Unexpected Error: {e}")return f"Something went wrong with {model} loading", Nonedef generate_image(setup_args, num_iterations):torch.cuda.empty_cache() # Free up cached memory103 unmodified lines104105106107108109110103 unmodified linesexcept Exception as e:print(f"Unexpected Error: {e}")return f"Something went wrong with {model} loading: {e}", Nonedef generate_image(setup_args, num_iterations):torch.cuda.empty_cache() # Free up cached memory
app.py+1-1