Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,12 +58,9 @@ def main():
|
|
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(
|
68 |
fn=predict,
|
69 |
inputs='text',
|
|
|
58 |
# ini = "True1"
|
59 |
#else:
|
60 |
# ini = "False1"
|
|
|
|
|
|
|
|
|
|
|
61 |
#result = subprocess.check_output(['nvidia-smi'])
|
62 |
+
load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
63 |
+
|
64 |
iface = gr.Interface(
|
65 |
fn=predict,
|
66 |
inputs='text',
|