Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -3,8 +3,7 @@ import gradio as gr | |
| 3 | 
             
            from transformers import pipeline
         | 
| 4 |  | 
| 5 | 
             
            # Use a pipeline as a high-level helper
         | 
| 6 | 
            -
            text_summary = pipeline("summarization", model="Falconsai/text_summarization",
         | 
| 7 | 
            -
                                    torch_dtype=torch.bfloat16)
         | 
| 8 |  | 
| 9 | 
             
            def summary(input):
         | 
| 10 | 
             
                output = text_summary(input)
         | 
|  | |
| 3 | 
             
            from transformers import pipeline
         | 
| 4 |  | 
| 5 | 
             
            # Use a pipeline as a high-level helper
         | 
| 6 | 
            +
            text_summary = pipeline("summarization", model="Falconsai/text_summarization",torch_dtype=torch.bfloat16)
         | 
|  | |
| 7 |  | 
| 8 | 
             
            def summary(input):
         | 
| 9 | 
             
                output = text_summary(input)
         |