GiordanoB commited on
Commit
59289ee
·
1 Parent(s): 510343b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,13 +32,13 @@ def summarize_HUB_Multidocument(input_1, input_2, input_3, method, max_length, m
32
  tempSum2 = summarize_mT5(input_2, max_length, min_length, num_beams)
33
  tempSum3 = summarize_mT5(input_3, max_length, min_length, num_beams)
34
  fullSumm = tempSum1 + tempSum2 + tempSum3
35
- return summarize_mT5(fullSumm, max_length, num_beams)
36
 
37
  if(input_1 and input_2 and not input_3): #"1 e 2 cheios"
38
  tempSum1 = summarize_mT5(input_1, max_length, min_length, num_beams)
39
  tempSum2 = summarize_mT5(input_2, max_length, min_length, num_beams)
40
  fullSumm = tempSum1 + tempSum2
41
- return summarize_mT5(fullSumm, max_length, num_beams)
42
 
43
  if(input_1 and not input_2 and input_3): #1 e 3 cheios"
44
  tempSum1 = summarize_mT5(input_1, max_length, min_length, num_beams)
 
32
  tempSum2 = summarize_mT5(input_2, max_length, min_length, num_beams)
33
  tempSum3 = summarize_mT5(input_3, max_length, min_length, num_beams)
34
  fullSumm = tempSum1 + tempSum2 + tempSum3
35
+ return summarize_mT5(fullSumm, max_length, min_length, num_beams)
36
 
37
  if(input_1 and input_2 and not input_3): #"1 e 2 cheios"
38
  tempSum1 = summarize_mT5(input_1, max_length, min_length, num_beams)
39
  tempSum2 = summarize_mT5(input_2, max_length, min_length, num_beams)
40
  fullSumm = tempSum1 + tempSum2
41
+ return summarize_mT5(fullSumm, max_length, min_length, num_beams)
42
 
43
  if(input_1 and not input_2 and input_3): #1 e 3 cheios"
44
  tempSum1 = summarize_mT5(input_1, max_length, min_length, num_beams)