nateraw commited on
Commit
2c90f64
1 Parent(s): 6cc967f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ class InferenceWrapper:
13
  else:
14
  print(f"Model '{model}' already loaded, reusing it.")
15
  return self.pipe([seed1, seed2, seed3], w_frames=w_frames)
16
- wrapper = InferenceWrapper('wikiart-1024')
17
  def fn(s1, s2, s3, w_frames, model):
18
  return wrapper(s1, s2, s3, w_frames, model)
19
  gr.Interface(
@@ -23,7 +23,7 @@ gr.Interface(
23
  gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=0, label='Random Seed For Image 2'),
24
  gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=0, label='Random Seed For Image 3'),
25
  gr.inputs.Radio([60, 120, 240], type="value", default=60, label='Frames'),
26
- gr.inputs.Radio(list(model_map), type="value", default='wikiart-1024', label='Pretrained Model')
27
  ],
28
  outputs='video',
29
  examples=[[0, 1, 2, 60, 'landscapes-256']],
 
13
  else:
14
  print(f"Model '{model}' already loaded, reusing it.")
15
  return self.pipe([seed1, seed2, seed3], w_frames=w_frames)
16
+ wrapper = InferenceWrapper('stylegan3-t-afhqv2-512x512.pkl')
17
  def fn(s1, s2, s3, w_frames, model):
18
  return wrapper(s1, s2, s3, w_frames, model)
19
  gr.Interface(
 
23
  gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=0, label='Random Seed For Image 2'),
24
  gr.inputs.Slider(minimum=0, maximum=999999999, step=1, default=0, label='Random Seed For Image 3'),
25
  gr.inputs.Radio([60, 120, 240], type="value", default=60, label='Frames'),
26
+ gr.inputs.Radio(list(model_map), type="value", default='stylegan3-t-afhqv2-512x512.pkl', label='Pretrained Model')
27
  ],
28
  outputs='video',
29
  examples=[[0, 1, 2, 60, 'landscapes-256']],