Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ TOKEN = "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"
|
|
39 |
|
40 |
|
41 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
42 |
-
|
43 |
|
44 |
def parse_args() -> argparse.Namespace:
|
45 |
parser = argparse.ArgumentParser()
|
@@ -94,9 +94,9 @@ def main():
|
|
94 |
log_visual_freq=1000,
|
95 |
input='text',
|
96 |
))
|
97 |
-
device = th.device()
|
98 |
-
generator = create_generator("stylegan2-ffhq-config-f.pt","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",args, device)
|
99 |
-
latent = torch.randn((1, 512), device=device)
|
100 |
#img_out, _, _ = generator([latent])
|
101 |
#imgs_arr = make_image(img_out)
|
102 |
#iface = gr.Interface(
|
|
|
39 |
|
40 |
|
41 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
42 |
+
scores = []
|
43 |
|
44 |
def parse_args() -> argparse.Namespace:
|
45 |
parser = argparse.ArgumentParser()
|
|
|
94 |
log_visual_freq=1000,
|
95 |
input='text',
|
96 |
))
|
97 |
+
#device = th.device()
|
98 |
+
#generator = create_generator("stylegan2-ffhq-config-f.pt","feng2022/Time-TravelRephotography_stylegan2-ffhq-config-f",args, device)
|
99 |
+
#latent = torch.randn((1, 512), device=device)
|
100 |
#img_out, _, _ = generator([latent])
|
101 |
#imgs_arr = make_image(img_out)
|
102 |
#iface = gr.Interface(
|