Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
|
4 |
model_map = torch.hub.load('nateraw/image-generation:main', 'model_map')
|
|
|
|
|
|
|
5 |
|
6 |
class InferenceWrapper:
|
7 |
def __init__(self, model):
|
|
|
2 |
import torch
|
3 |
|
4 |
model_map = torch.hub.load('nateraw/image-generation:main', 'model_map')
|
5 |
+
on_gpu = torch.cuda.is_available()
|
6 |
+
|
7 |
+
print(f"GPU enabled? - {'🔴' if not on_gpu else '🟢'}")
|
8 |
|
9 |
class InferenceWrapper:
|
10 |
def __init__(self, model):
|