Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -44,7 +44,7 @@ def summarize_text(text): | |
| 44 | 
             
                                             do_sample=False,
         | 
| 45 | 
             
                                             early_stopping=True)
         | 
| 46 | 
             
                summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
         | 
| 47 | 
            -
             | 
| 48 | 
             
                if '.' in summary:
         | 
| 49 | 
             
                    index = summary.rindex('.')
         | 
| 50 | 
             
                    if index != -1:
         | 
|  | |
| 44 | 
             
                                             do_sample=False,
         | 
| 45 | 
             
                                             early_stopping=True)
         | 
| 46 | 
             
                summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
         | 
| 47 | 
            +
                
         | 
| 48 | 
             
                if '.' in summary:
         | 
| 49 | 
             
                    index = summary.rindex('.')
         | 
| 50 | 
             
                    if index != -1:
         | 
