Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	
		Aitron Emper
		
	commited on
		
		
					Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -63,45 +63,16 @@ with gr.Blocks(theme=my_applio, title="Applio") as Applio: 
     | 
|
| 63 | 
         
             
                )
         
     | 
| 64 | 
         
             
                with gr.Tab(i18n("Inference")):
         
     | 
| 65 | 
         
             
                    inference_tab()
         
     | 
| 66 | 
         
            -
             
     | 
| 67 | 
         
            -
                with gr.Tab(i18n("Train")):
         
     | 
| 68 | 
         
            -
                    if gpu_available() or load_fake_gpu():
         
     | 
| 69 | 
         
            -
                        train_tab()
         
     | 
| 70 | 
         
            -
                    else:
         
     | 
| 71 | 
         
            -
                        gr.Markdown(
         
     | 
| 72 | 
         
            -
                            i18n(
         
     | 
| 73 | 
         
            -
                                "Training is currently unsupported due to the absence of a GPU. To activate the training tab, navigate to the settings tab and enable the 'Fake GPU' option."
         
     | 
| 74 | 
         
            -
                            )
         
     | 
| 75 | 
         
            -
                        )
         
     | 
| 76 | 
         
            -
            '''
         
     | 
| 77 | 
         
             
                with gr.Tab(i18n("TTS")):
         
     | 
| 78 | 
         
             
                    tts_tab()
         
     | 
| 79 | 
         
            -
            '''
         
     | 
| 80 | 
         
            -
                with gr.Tab(i18n("Voice Blender")):
         
     | 
| 81 | 
         
            -
                    voice_blender_tab()
         
     | 
| 82 | 
         | 
| 83 | 
         
            -
                with gr.Tab(i18n("Plugins")):
         
     | 
| 84 | 
         
            -
                    plugins_tab()
         
     | 
| 85 | 
         
            -
            '''
         
     | 
| 86 | 
         
             
                with gr.Tab(i18n("Download")):
         
     | 
| 87 | 
         
             
                    download_tab()
         
     | 
| 88 | 
         
            -
             
     | 
| 89 | 
         
            -
                with gr.Tab(i18n("Report a Bug")):
         
     | 
| 90 | 
         
            -
                    report_tab()
         
     | 
| 91 | 
         
            -
            '''
         
     | 
| 92 | 
         
             
                with gr.Tab(i18n("Extra")):
         
     | 
| 93 | 
         
             
                    extra_tab()
         
     | 
| 94 | 
         
            -
             
     | 
| 95 | 
         
            -
                with gr.Tab(i18n("Settings")):
         
     | 
| 96 | 
         
            -
                    presence_tab()
         
     | 
| 97 | 
         
            -
                    flask_server_tab()
         
     | 
| 98 | 
         
            -
                    if not gpu_available():
         
     | 
| 99 | 
         
            -
                        fake_gpu_tab()
         
     | 
| 100 | 
         
            -
                    theme_tab()
         
     | 
| 101 | 
         
            -
                    version_tab()
         
     | 
| 102 | 
         
            -
                    lang_tab()
         
     | 
| 103 | 
         
            -
                    restart_tab()
         
     | 
| 104 | 
         
            -
            '''
         
     | 
| 105 | 
         | 
| 106 | 
         
             
            if __name__ == "__main__":
         
     | 
| 107 | 
         
             
                port = 6969
         
     | 
| 
         | 
|
| 63 | 
         
             
                )
         
     | 
| 64 | 
         
             
                with gr.Tab(i18n("Inference")):
         
     | 
| 65 | 
         
             
                    inference_tab()
         
     | 
| 66 | 
         
            +
                    
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 67 | 
         
             
                with gr.Tab(i18n("TTS")):
         
     | 
| 68 | 
         
             
                    tts_tab()
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 69 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 70 | 
         
             
                with gr.Tab(i18n("Download")):
         
     | 
| 71 | 
         
             
                    download_tab()
         
     | 
| 72 | 
         
            +
             
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 73 | 
         
             
                with gr.Tab(i18n("Extra")):
         
     | 
| 74 | 
         
             
                    extra_tab()
         
     | 
| 75 | 
         
            +
             
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 76 | 
         | 
| 77 | 
         
             
            if __name__ == "__main__":
         
     | 
| 78 | 
         
             
                port = 6969
         
     |