Vaibhavbrkn commited on
Commit
42f0c65
β€’
1 Parent(s): d476ff2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def func(context, slide):
80
  if temp > 0:
81
  for i in range(temp):
82
  keyword = random.choice(ap)
83
- inputs = "context: " + context + \\n " keyword: " + keyword[0]
84
  source_tokenizer = tokenizer.encode_plus(
85
  inputs, max_length=512, pad_to_max_length=True, return_tensors="pt")
86
  outs = model.generate(input_ids=source_tokenizer['input_ids'].to(
 
80
  if temp > 0:
81
  for i in range(temp):
82
  keyword = random.choice(ap)
83
+ inputs = "context: " + context + " keyword: " + keyword[0]
84
  source_tokenizer = tokenizer.encode_plus(
85
  inputs, max_length=512, pad_to_max_length=True, return_tensors="pt")
86
  outs = model.generate(input_ids=source_tokenizer['input_ids'].to(