Spaces:
				
			
			
	
			
			
		Configuration error
		
	
	
	
			
			
	
	
	
	
		
		
		Configuration error
		
	Update
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -84,16 +84,23 @@ with gr.Blocks(css='style.css') as demo: 
     | 
|
| 84 | 
         
             
                            '''The base model is not allowed to be changed in this Space so as not to slow down the demo, but it can be changed if you duplicate the Space.'''
         
     | 
| 85 | 
         
             
                        )
         
     | 
| 86 | 
         | 
| 87 | 
         
            -
                check_base_model_button.click( 
     | 
| 88 | 
         
            -
             
     | 
| 89 | 
         
            -
             
     | 
| 90 | 
         
            -
             
     | 
| 91 | 
         
            -
             
     | 
| 92 | 
         
            -
             
     | 
| 93 | 
         
            -
             
     | 
| 94 | 
         
            -
             
     | 
| 95 | 
         
            -
             
     | 
| 96 | 
         
            -
             
     | 
| 97 | 
         
            -
             
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 98 | 
         | 
| 99 | 
         
             
            demo.queue(max_size=20).launch()
         
     | 
| 
         | 
|
| 84 | 
         
             
                            '''The base model is not allowed to be changed in this Space so as not to slow down the demo, but it can be changed if you duplicate the Space.'''
         
     | 
| 85 | 
         
             
                        )
         
     | 
| 86 | 
         | 
| 87 | 
         
            +
                check_base_model_button.click(
         
     | 
| 88 | 
         
            +
                    fn=lambda: model.base_model_id,
         
     | 
| 89 | 
         
            +
                    outputs=current_base_model,
         
     | 
| 90 | 
         
            +
                    queue=False,
         
     | 
| 91 | 
         
            +
                    api_name='check_base_model',
         
     | 
| 92 | 
         
            +
                )
         
     | 
| 93 | 
         
            +
                new_base_model_id.submit(
         
     | 
| 94 | 
         
            +
                    fn=model.set_base_model,
         
     | 
| 95 | 
         
            +
                    inputs=new_base_model_id,
         
     | 
| 96 | 
         
            +
                    outputs=current_base_model,
         
     | 
| 97 | 
         
            +
                    api_name=False,
         
     | 
| 98 | 
         
            +
                )
         
     | 
| 99 | 
         
            +
                change_base_model_button.click(
         
     | 
| 100 | 
         
            +
                    fn=model.set_base_model,
         
     | 
| 101 | 
         
            +
                    inputs=new_base_model_id,
         
     | 
| 102 | 
         
            +
                    outputs=current_base_model,
         
     | 
| 103 | 
         
            +
                    api_name=False,
         
     | 
| 104 | 
         
            +
                )
         
     | 
| 105 | 
         | 
| 106 | 
         
             
            demo.queue(max_size=20).launch()
         
     |