aino813 commited on
Commit
1320441
โ€ข
1 Parent(s): b96aff4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def summary(text):
16
  with torch.no_grad():
17
  summary_ids = model.generate(input)
18
 
19
- return tokenizer.decode(summary_ids[0][1:-1])]
20
 
21
  descriptions = "T5ใซใ‚ˆใ‚‹ๆ–‡็ซ ่ฆ็ด„ใ€‚ๆ–‡็ซ ใ‚’ๅ…ฅๅŠ›ใ™ใ‚‹ใจใ€ใใฎ่ฆ็ด„ๆ–‡ใ‚’ๅ‡บๅŠ›ใ—ใพใ™ใ€‚"
22
 
 
16
  with torch.no_grad():
17
  summary_ids = model.generate(input)
18
 
19
+ return tokenizer.decode(summary_ids[0][1:-1])
20
 
21
  descriptions = "T5ใซใ‚ˆใ‚‹ๆ–‡็ซ ่ฆ็ด„ใ€‚ๆ–‡็ซ ใ‚’ๅ…ฅๅŠ›ใ™ใ‚‹ใจใ€ใใฎ่ฆ็ด„ๆ–‡ใ‚’ๅ‡บๅŠ›ใ—ใพใ™ใ€‚"
22