UI
This commit is contained in:
		
							parent
							
								
									9eb15f5e68
								
							
						
					
					
						commit
						25693c362c
					
				
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@ -34,7 +34,7 @@ try: set_theme = gr.themes.Default( primary_hue=gr.themes.utils.colors.orange,
 | 
			
		||||
    font=["ui-sans-serif", "system-ui", "sans-serif", gr.themes.utils.fonts.GoogleFont("Source Sans Pro")], 
 | 
			
		||||
    font_mono=["ui-monospace", "Consolas", "monospace", gr.themes.utils.fonts.GoogleFont("IBM Plex Mono")])
 | 
			
		||||
except: 
 | 
			
		||||
    set_theme = None; print('gradio 版本老旧,不能自定义字体和颜色')
 | 
			
		||||
    set_theme = None; print('gradio版本较旧,不能自定义字体和颜色')
 | 
			
		||||
 | 
			
		||||
with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
 | 
			
		||||
    gr.HTML(title_html)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user