Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,13 +54,13 @@ def predict(text):
|
|
| 54 |
def main():
|
| 55 |
torch.cuda.init()
|
| 56 |
if torch.cuda.is_initialized():
|
| 57 |
-
ini = "
|
| 58 |
else:
|
| 59 |
-
ini = "
|
| 60 |
if torch.cuda.is_available():
|
| 61 |
-
result = "
|
| 62 |
else:
|
| 63 |
-
result = "
|
| 64 |
#load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
| 65 |
iface = gr.Interface(
|
| 66 |
fn=predict,
|
|
|
|
| 54 |
def main():
|
| 55 |
torch.cuda.init()
|
| 56 |
if torch.cuda.is_initialized():
|
| 57 |
+
ini = "True1"
|
| 58 |
else:
|
| 59 |
+
ini = "False1"
|
| 60 |
if torch.cuda.is_available():
|
| 61 |
+
result = "True2"
|
| 62 |
else:
|
| 63 |
+
result = "False2"
|
| 64 |
#load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
| 65 |
iface = gr.Interface(
|
| 66 |
fn=predict,
|