small change
Browse files
app.py
CHANGED
@@ -89,10 +89,11 @@ def main():
|
|
89 |
use_auth_token=die_token
|
90 |
)
|
91 |
|
|
|
|
|
92 |
die_model = UNetDIEModel(args=args)
|
93 |
|
94 |
# Partially apply the model and device arguments to die_inference
|
95 |
-
args.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
96 |
partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)
|
97 |
|
98 |
# Gradio Interface
|
|
|
89 |
use_auth_token=die_token
|
90 |
)
|
91 |
|
92 |
+
args.device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
93 |
+
|
94 |
die_model = UNetDIEModel(args=args)
|
95 |
|
96 |
# Partially apply the model and device arguments to die_inference
|
|
|
97 |
partial_die_inference = partial(die_inference, device=args.device, die_model=die_model)
|
98 |
|
99 |
# Gradio Interface
|