Spaces:
Sleeping
Sleeping
Commit
·
b61ba14
1
Parent(s):
543b2f1
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generateSumm(input_texte,max,min):
|
|
| 16 |
if min<len(input_texte):
|
| 17 |
|
| 18 |
if max>min:
|
| 19 |
-
|
| 20 |
input_ids = tokenizer.encode(input_texte, return_tensors='pt')
|
| 21 |
#generation de resume a l'aide de texte encodé
|
| 22 |
summary_ids = model.generate(input_ids,#le texte encodé
|
|
|
|
| 16 |
if min<len(input_texte):
|
| 17 |
|
| 18 |
if max>min:
|
| 19 |
+
|
| 20 |
input_ids = tokenizer.encode(input_texte, return_tensors='pt')
|
| 21 |
#generation de resume a l'aide de texte encodé
|
| 22 |
summary_ids = model.generate(input_ids,#le texte encodé
|