azhongai666666
commited on
Commit
•
ce4e7b6
1
Parent(s):
2532eca
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ import gradio as gr
|
|
13 |
from PIL import Image
|
14 |
import numpy as np
|
15 |
from matplotlib import pyplot as plt
|
|
|
16 |
|
17 |
# Get cpu or gpu device for training.
|
18 |
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
|
|
13 |
from PIL import Image
|
14 |
import numpy as np
|
15 |
from matplotlib import pyplot as plt
|
16 |
+
from model import dehazeformer_t
|
17 |
|
18 |
# Get cpu or gpu device for training.
|
19 |
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|