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