Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						f4561b1
	
1
								Parent(s):
							
							930c104
								
Update app_hough.py
Browse files- app_hough.py +1 -8
 
    	
        app_hough.py
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ import gradio as gr 
     | 
|
| 6 | 
         
             
            def create_demo(process, max_images=12, default_num_images=3):
         
     | 
| 7 | 
         
             
                with gr.Blocks() as demo:
         
     | 
| 8 | 
         
             
                    with gr.Row():
         
     | 
| 9 | 
         
            -
                        gr.Markdown(' 
     | 
| 10 | 
         
             
                    with gr.Row():
         
     | 
| 11 | 
         
             
                        with gr.Column():
         
     | 
| 12 | 
         
             
                            input_image = gr.Image(source='upload', type='numpy')
         
     | 
| 
         @@ -88,10 +88,3 @@ def create_demo(process, max_images=12, default_num_images=3): 
     | 
|
| 88 | 
         
             
                                     outputs=result,
         
     | 
| 89 | 
         
             
                                     api_name='hough')
         
     | 
| 90 | 
         
             
                return demo
         
     | 
| 91 | 
         
            -
             
     | 
| 92 | 
         
            -
             
     | 
| 93 | 
         
            -
            if __name__ == '__main__':
         
     | 
| 94 | 
         
            -
                from model import Model
         
     | 
| 95 | 
         
            -
                model = Model()
         
     | 
| 96 | 
         
            -
                demo = create_demo(model.process_hough)
         
     | 
| 97 | 
         
            -
                demo.queue().launch()
         
     | 
| 
         | 
|
| 6 | 
         
             
            def create_demo(process, max_images=12, default_num_images=3):
         
     | 
| 7 | 
         
             
                with gr.Blocks() as demo:
         
     | 
| 8 | 
         
             
                    with gr.Row():
         
     | 
| 9 | 
         
            +
                        gr.Markdown('### Use a photo of your room and reimagine it with different styles')
         
     | 
| 10 | 
         
             
                    with gr.Row():
         
     | 
| 11 | 
         
             
                        with gr.Column():
         
     | 
| 12 | 
         
             
                            input_image = gr.Image(source='upload', type='numpy')
         
     | 
| 
         | 
|
| 88 | 
         
             
                                     outputs=result,
         
     | 
| 89 | 
         
             
                                     api_name='hough')
         
     | 
| 90 | 
         
             
                return demo
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         |