Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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()
|