Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -2
    	
        src/streamlit_app.py
    CHANGED
    
    | @@ -104,12 +104,15 @@ def _display_images(urls, caption_prefix="", max_per_row=3): | |
| 104 | 
             
                        )
         | 
| 105 |  | 
| 106 | 
             
            # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
         | 
| 107 | 
            -
            # Global CSS
         | 
| 108 | 
             
            # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
         | 
| 109 | 
             
            def _inject_css():
         | 
| 110 | 
             
                css = """
         | 
| 111 | 
             
                <style>
         | 
| 112 | 
            -
                   | 
|  | |
|  | |
|  | |
| 113 | 
             
                  [data-testid="stImage"] img {
         | 
| 114 | 
             
                    width: 100%;
         | 
| 115 | 
             
                    height: auto;
         | 
|  | |
| 104 | 
             
                        )
         | 
| 105 |  | 
| 106 | 
             
            # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
         | 
| 107 | 
            +
            # Global CSS (adds top padding for HF Space header)
         | 
| 108 | 
             
            # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
         | 
| 109 | 
             
            def _inject_css():
         | 
| 110 | 
             
                css = """
         | 
| 111 | 
             
                <style>
         | 
| 112 | 
            +
                  /* Offset for HF Spaces top bar (~60β70px) so the main title is visible */
         | 
| 113 | 
            +
                  .block-container { padding-top: 5rem; }
         | 
| 114 | 
            +
                  h1:first-of-type { margin-top: 0; }
         | 
| 115 | 
            +
             | 
| 116 | 
             
                  [data-testid="stImage"] img {
         | 
| 117 | 
             
                    width: 100%;
         | 
| 118 | 
             
                    height: auto;
         | 
