Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,8 @@ pipe = pipe.to(device)
|
|
21 |
torch.cuda.empty_cache()
|
22 |
|
23 |
def genie(image):
|
|
|
|
|
24 |
frames = pipe(image).images[0]
|
25 |
return frames
|
26 |
|
|
|
21 |
torch.cuda.empty_cache()
|
22 |
|
23 |
def genie(image):
|
24 |
+
torch.cuda.max_memory_allocated(device=device)
|
25 |
+
torch.cuda.empty_cache()
|
26 |
frames = pipe(image).images[0]
|
27 |
return frames
|
28 |
|