Spaces:
				
			
			
	
			
			
		Build error
		
	
	
	
			
			
	
	
	
	
		
		
		Build error
		
	
		burtenshaw
		
	commited on
		
		
					Commit 
							
							·
						
						606a083
	
1
								Parent(s):
							
							0c270aa
								
use env hf_token for file upload
Browse files
    	
        app.py
    CHANGED
    
    | @@ -112,6 +112,7 @@ def upload_certificate_to_hub(username: str, certificate_img) -> str: | |
| 112 | 
             
                            path_in_repo=path_in_repo,
         | 
| 113 | 
             
                            repo_id=repo_id,
         | 
| 114 | 
             
                            repo_type="dataset",
         | 
|  | |
| 115 | 
             
                        )
         | 
| 116 |  | 
| 117 | 
             
                        # Construct the URL to the image
         | 
|  | |
| 112 | 
             
                            path_in_repo=path_in_repo,
         | 
| 113 | 
             
                            repo_id=repo_id,
         | 
| 114 | 
             
                            repo_type="dataset",
         | 
| 115 | 
            +
                            token=os.getenv("HF_TOKEN"),
         | 
| 116 | 
             
                        )
         | 
| 117 |  | 
| 118 | 
             
                        # Construct the URL to the image
         | 
