Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def make_inference(resume):
|
|
20 |
batch = tokenizer(f"Write an excecutive summary based off this resume.\n\n### Resume:\n{resume}", return_tensors='pt')
|
21 |
|
22 |
with torch.cuda.amp.autocast():
|
23 |
-
output_tokens = model.generate(**batch, max_new_tokens=
|
24 |
|
25 |
return tokenizer.decode(output_tokens[0], skip_special_tokens=True)
|
26 |
|
|
|
20 |
batch = tokenizer(f"Write an excecutive summary based off this resume.\n\n### Resume:\n{resume}", return_tensors='pt')
|
21 |
|
22 |
with torch.cuda.amp.autocast():
|
23 |
+
output_tokens = model.generate(**batch, max_new_tokens=200)
|
24 |
|
25 |
return tokenizer.decode(output_tokens[0], skip_special_tokens=True)
|
26 |
|