AvaLovelace commited on
Commit
eabc75d
·
1 Parent(s): 6a3d39e

Update default max_regenerations

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ def main():
39
  print('Running in Hugging Face Space, setting up environment...')
40
  setup()
41
 
42
- model_cfg = LegoGPTConfig()
43
- model = LegoGPT(LegoGPTConfig())
44
 
45
  def generate_lego(
46
  prompt: str,
 
39
  print('Running in Hugging Face Space, setting up environment...')
40
  setup()
41
 
42
+ model_cfg = LegoGPTConfig(max_regenerations=10)
43
+ model = LegoGPT(model_cfg)
44
 
45
  def generate_lego(
46
  prompt: str,