Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	
		Muhammad Anas Akhtar
		
	commited on
		
		
					Updated app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ Text_summary = pipeline("summarization", model="facebook/bart-large-cnn", torch_ 
     | 
|
| 8 | 
         
             
            # Define a function to estimate token count from word count
         
     | 
| 9 | 
         
             
            def estimate_tokens(word_count):
         
     | 
| 10 | 
         
             
                # Approximate tokens as 1.5 times the word count
         
     | 
| 11 | 
         
            -
                return int(word_count * 1 
     | 
| 12 | 
         | 
| 13 | 
         
             
            # Define the summarization function
         
     | 
| 14 | 
         
             
            def summary(input, word_count):
         
     | 
| 
         | 
|
| 8 | 
         
             
            # Define a function to estimate token count from word count
         
     | 
| 9 | 
         
             
            def estimate_tokens(word_count):
         
     | 
| 10 | 
         
             
                # Approximate tokens as 1.5 times the word count
         
     | 
| 11 | 
         
            +
                return int(word_count * 1)
         
     | 
| 12 | 
         | 
| 13 | 
         
             
            # Define the summarization function
         
     | 
| 14 | 
         
             
            def summary(input, word_count):
         
     |