Spaces:
Runtime error
Runtime error
Commit
Β·
42f0c65
1
Parent(s):
d476ff2
Update app.py
Browse files
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 +
|
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(
|