import gradio as gr import os def create_app(): # Custom CSS for better styling custom_css = """ /* Global font size increase */ .gradio-container, .gradio-container * { font-size: 16px !important; } .main-container { max-width: 1200px; margin: 0 auto; padding: 20px; font-size: 16px; } .banner-container { text-align: center; margin-bottom: 30px; } .section-header { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 10px; margin: 20px 0 10px 0; font-weight: bold; font-size: 1.4em !important; } .subsection-header { background: #f8f9fa; padding: 10px; border-left: 4px solid #667eea; margin: 15px 0 10px 0; font-weight: bold; font-size: 1.1em !important; } .info-box { background: #ffffff; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; margin: 10px 0; font-size: 16px !important; } .info-box p, .info-box li, .info-box ul { font-size: 16px !important; line-height: 1.6 !important; } .highlight { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 5px; padding: 10px; margin: 5px 0; font-size: 16px !important; } .dataset-link { color: #667eea; text-decoration: none; font-weight: 500; font-size: 16px !important; } .dataset-link:hover { text-decoration: underline; } .checkbox-yes { color: #28a745; font-weight: bold; font-size: 16px !important; } .checkbox-no { color: #dc3545; font-weight: bold; font-size: 16px !important; } /* Ensure all text elements have larger font */ h1, h2, h3, h4, h5, h6 { font-size: 1.2em !important; } strong { font-size: inherit !important; } """ with gr.Blocks(css=custom_css, title="SmolLM3-3B EU Data Transparency") as app: # Banner section with images with gr.Row(): with gr.Column(scale=2): try: gr.Image("eu_flag.png", height=180, show_label=False, show_download_button=False, interactive=False, container=False) except: gr.HTML('
') # Placeholder if image not found with gr.Column(scale=1.5): gr.HTML("""

SmolLM3-3B

Public Summary of Training Content

""") with gr.Column(scale=2): try: gr.Image("banner.png", height=180, show_label=False, show_download_button=False, interactive=False, container=False) except: gr.HTML('
') # Placeholder if image not found gr.HTML("""

This Space contains the transparency report for the SmolLM3-3B GPAI model developped by Hugging Face following the guidelines provided by the AI Office.
For more information, see the Explanatory Notice and Template

""") with gr.Column(elem_classes=["main-container"]): # Section 1: General Information gr.HTML('
1. General information
') with gr.Row(): with gr.Column(): gr.HTML("""
1.1. Provider identification
""") with gr.Column(): gr.HTML("""
1.2. Model identification
""") gr.HTML("""
1.3. Modalities, overall training data size and other characteristics
""") # Section 2: Data Sources gr.HTML('
2. List of data sources
') gr.HTML("""
2.1. Publicly available datasets
""") gr.HTML("""
2.2. Private non-publicly available datasets obtained from third parties

2.2.1. Datasets commercially licensed by rightsholders or their representatives

2.2.2. Private datasets obtained from other third parties

""") with gr.Row(): with gr.Column(): gr.HTML("""
2.3. Data crawled and scraped from online sources
""") with gr.Column(): gr.HTML("""
2.4. User data
""") with gr.Row(): with gr.Column(): gr.HTML("""
2.5. Synthetic data
""") with gr.Column(): gr.HTML("""
2.6. Other sources of data
""") # Section 3: Data Processing gr.HTML('
3. Data processing aspects
') gr.HTML("""
3.1. Respect of reservation of rights from text and data mining exception or limitation
""") gr.HTML("""
3.2. Removal of illegal content
""") return app # Create the demo instance directly for Gradio auto-reload demo = create_app() if __name__ == "__main__": demo.launch(share=True, show_error=True)