Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,10 @@ from transformers import pipeline
|
|
18 |
sys.path.append('.')
|
19 |
sys.path.append('./Time_TravelRephotography')
|
20 |
from argparse import Namespace
|
21 |
-
from projector import (
|
22 |
-
ProjectorArguments,
|
23 |
-
main,
|
24 |
-
)
|
25 |
sys.path.insert(0, 'StyleGAN-Human')
|
26 |
|
27 |
TITLE = 'Time-TravelRephotography'
|
@@ -52,6 +52,7 @@ def predict(text):
|
|
52 |
return pipe(text)[0]["translation_text"]
|
53 |
|
54 |
def main():
|
|
|
55 |
load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
56 |
iface = gr.Interface(
|
57 |
fn=predict,
|
|
|
18 |
sys.path.append('.')
|
19 |
sys.path.append('./Time_TravelRephotography')
|
20 |
from argparse import Namespace
|
21 |
+
#from projector import (
|
22 |
+
# ProjectorArguments,
|
23 |
+
# main,
|
24 |
+
#)
|
25 |
sys.path.insert(0, 'StyleGAN-Human')
|
26 |
|
27 |
TITLE = 'Time-TravelRephotography'
|
|
|
52 |
return pipe(text)[0]["translation_text"]
|
53 |
|
54 |
def main():
|
55 |
+
tools.setup_helpers.cuda.CUDA_HOME
|
56 |
load_model("stylegan2-ffhq-config-f","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f")
|
57 |
iface = gr.Interface(
|
58 |
fn=predict,
|