jaydenccc commited on
Commit
8390662
1 Parent(s): 68eccdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def make_inference(synopsis):
21
  )
22
 
23
  with torch.cuda.amp.autocast():
24
- output_tokens = model.generate(**batch, max_new_tokens=600)
25
 
26
  full_output = tokenizer.decode(output_tokens[0], skip_special_tokens=True)
27
  short_story = full_output.split("### Short Story:\n")[-1].strip()
 
21
  )
22
 
23
  with torch.cuda.amp.autocast():
24
+ output_tokens = model.generate(**batch, max_new_tokens=400, temperature = 0.9)
25
 
26
  full_output = tokenizer.decode(output_tokens[0], skip_special_tokens=True)
27
  short_story = full_output.split("### Short Story:\n")[-1].strip()