Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	
		Fangyu Liu
		
	commited on
		
		
					Commit 
							
							·
						
						7522c5d
	
1
								Parent(s):
							
							fdac8dd
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -5,8 +5,8 @@ import os 
     | 
|
| 5 | 
         | 
| 6 | 
         
             
            ##Bloom
         
     | 
| 7 | 
         
             
            API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
         
     | 
| 8 | 
         
            -
             
     | 
| 9 | 
         
            -
            headers = {"Authorization": f"Bearer { 
     | 
| 10 | 
         | 
| 11 | 
         
             
            def _add_markup(table):
         
     | 
| 12 | 
         
             
                parts = [p.strip() for p in table.splitlines(keepends=False)]
         
     | 
| 
         | 
|
| 5 | 
         | 
| 6 | 
         
             
            ##Bloom
         
     | 
| 7 | 
         
             
            API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
         
     | 
| 8 | 
         
            +
            HF_API_TOKEN = os.getenv["HF_API_TOKEN"]
         
     | 
| 9 | 
         
            +
            headers = {"Authorization": f"Bearer {HF_API_TOKEN}"}
         
     | 
| 10 | 
         | 
| 11 | 
         
             
            def _add_markup(table):
         
     | 
| 12 | 
         
             
                parts = [p.strip() for p in table.splitlines(keepends=False)]
         
     |