Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|