Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						603b967
	
1
								Parent(s):
							
							197f5c3
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -1,12 +1,12 @@ | |
| 1 | 
             
            import gradio as gr
         | 
| 2 | 
             
            from fastai.vision.all import *
         | 
| 3 | 
            -
            from os.path import  | 
| 4 | 
             
            import requests
         | 
| 5 |  | 
| 6 | 
             
            model_fn = 'quick_224px'
         | 
| 7 | 
             
            url = 'https://huggingface.co/johnowhitaker/sketchy_unet_rn34/resolve/main/quick_224px'
         | 
| 8 |  | 
| 9 | 
            -
            if not  | 
| 10 | 
             
              print('starting download')
         | 
| 11 | 
             
              with requests.get(url, stream=True) as r:
         | 
| 12 | 
             
                r.raise_for_status()
         | 
|  | |
| 1 | 
             
            import gradio as gr
         | 
| 2 | 
             
            from fastai.vision.all import *
         | 
| 3 | 
            +
            from os.path import exists
         | 
| 4 | 
             
            import requests
         | 
| 5 |  | 
| 6 | 
             
            model_fn = 'quick_224px'
         | 
| 7 | 
             
            url = 'https://huggingface.co/johnowhitaker/sketchy_unet_rn34/resolve/main/quick_224px'
         | 
| 8 |  | 
| 9 | 
            +
            if not exists(model_fn):
         | 
| 10 | 
             
              print('starting download')
         | 
| 11 | 
             
              with requests.get(url, stream=True) as r:
         | 
| 12 | 
             
                r.raise_for_status()
         | 
