doevent commited on
Commit
856b841
1 Parent(s): 3be7067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -19,8 +19,6 @@ def inference(image, size):
19
  result = model4.predict(image.convert('RGB'))
20
  else:
21
  result = model8.predict(image.convert('RGB'))
22
- if torch.cuda.is_available():
23
- torch.cuda.empty_cache()
24
  return result
25
 
26
 
 
19
  result = model4.predict(image.convert('RGB'))
20
  else:
21
  result = model8.predict(image.convert('RGB'))
 
 
22
  return result
23
 
24