Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,10 +58,10 @@ def main():
|
|
58 |
# ini = "True1"
|
59 |
#else:
|
60 |
# ini = "False1"
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
#load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
66 |
result = subprocess.check_output(['nvidia-smi'])
|
67 |
iface = gr.Interface(
|
|
|
58 |
# ini = "True1"
|
59 |
#else:
|
60 |
# ini = "False1"
|
61 |
+
if torch.cuda.is_available():
|
62 |
+
result = "True2"
|
63 |
+
else:
|
64 |
+
result = "False2"
|
65 |
#load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
66 |
result = subprocess.check_output(['nvidia-smi'])
|
67 |
iface = gr.Interface(
|