Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartvauder committed Nov 7, 2024
1 parent 30e214a commit ae4f75a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LaunchFile/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def flush():
gc.collect()
if torch.cuda.is_available():
torch.cuda.empty_cache()
if torch.backends.mps.is_available():
torch.mps.empty_cache()


def stop_generation():
Expand Down

0 comments on commit ae4f75a

Please sign in to comment.