front ajusted for dark mode
Browse files
    	
        app.py
    CHANGED
    
    | @@ -526,15 +526,16 @@ with gr.Blocks(title="Climate Q&A", css_paths=os.getcwd()+ "/style.css", theme=t | |
| 526 |  | 
| 527 | 
             
            ### Citation
         | 
| 528 | 
             
            """)
         | 
| 529 | 
            -
                            
         | 
| 530 | 
            -
             | 
| 531 | 
            -
             | 
| 532 | 
            -
             | 
| 533 | 
            -
             | 
| 534 | 
            -
             | 
| 535 | 
            -
             | 
| 536 | 
            -
             | 
| 537 | 
            -
             | 
|  | |
| 538 |  | 
| 539 |  | 
| 540 | 
             
                def start_chat(query,history):
         | 
|  | |
| 526 |  | 
| 527 | 
             
            ### Citation
         | 
| 528 | 
             
            """)
         | 
| 529 | 
            +
                            with gr.Accordion(CITATION_LABEL,elem_id="citation", open = False,):
         | 
| 530 | 
            +
                                # # Display citation label and text)
         | 
| 531 | 
            +
                                gr.Textbox(
         | 
| 532 | 
            +
                                    value=CITATION_TEXT,
         | 
| 533 | 
            +
                                    label="",
         | 
| 534 | 
            +
                                    interactive=False,
         | 
| 535 | 
            +
                                    show_copy_button=True,
         | 
| 536 | 
            +
                                    lines=len(CITATION_TEXT.split('\n')),
         | 
| 537 | 
            +
                                )
         | 
| 538 | 
            +
             | 
| 539 |  | 
| 540 |  | 
| 541 | 
             
                def start_chat(query,history):
         | 
    	
        style.css
    CHANGED
    
    | @@ -96,6 +96,8 @@ a { | |
| 96 | 
             
                color:#dc2626!important;
         | 
| 97 | 
             
                /* margin-right:1px; */
         | 
| 98 | 
             
            }
         | 
|  | |
|  | |
| 99 | 
             
            .card {
         | 
| 100 | 
             
                background-color: white;
         | 
| 101 | 
             
                border-radius: 10px;
         | 
| @@ -310,10 +312,16 @@ footer { | |
| 310 | 
             
            }
         | 
| 311 |  | 
| 312 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
| 313 | 
             
            body.dark .card{
         | 
| 314 | 
             
                background-color: #374151;
         | 
| 315 | 
             
            }
         | 
| 316 |  | 
|  | |
| 317 | 
             
            body.dark .card-content h2{
         | 
| 318 | 
             
                color:#f4dbd3 !important;
         | 
| 319 | 
             
            }
         | 
| @@ -325,7 +333,15 @@ body.dark .card-footer { | |
| 325 | 
             
            body.dark .card-footer span {
         | 
| 326 | 
             
                color:white !important;
         | 
| 327 | 
             
            }
         | 
| 328 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 329 |  | 
| 330 | 
             
            .doc-ref{
         | 
| 331 | 
             
                color:#dc2626!important;
         | 
|  | |
| 96 | 
             
                color:#dc2626!important;
         | 
| 97 | 
             
                /* margin-right:1px; */
         | 
| 98 | 
             
            }
         | 
| 99 | 
            +
             | 
| 100 | 
            +
             | 
| 101 | 
             
            .card {
         | 
| 102 | 
             
                background-color: white;
         | 
| 103 | 
             
                border-radius: 10px;
         | 
|  | |
| 312 | 
             
            }
         | 
| 313 |  | 
| 314 |  | 
| 315 | 
            +
            body.dark .container > .wrap{
         | 
| 316 | 
            +
                background-color: #374151 !important;
         | 
| 317 | 
            +
                color:white !important;
         | 
| 318 | 
            +
            }
         | 
| 319 | 
            +
             | 
| 320 | 
             
            body.dark .card{
         | 
| 321 | 
             
                background-color: #374151;
         | 
| 322 | 
             
            }
         | 
| 323 |  | 
| 324 | 
            +
             | 
| 325 | 
             
            body.dark .card-content h2{
         | 
| 326 | 
             
                color:#f4dbd3 !important;
         | 
| 327 | 
             
            }
         | 
|  | |
| 333 | 
             
            body.dark .card-footer span {
         | 
| 334 | 
             
                color:white !important;
         | 
| 335 | 
             
            }
         | 
| 336 | 
            +
            body.dark .gradio-container .contain .card-image > .card-content{
         | 
| 337 | 
            +
                background-color: #404652 !important;
         | 
| 338 | 
            +
            }
         | 
| 339 | 
            +
            body.dark .gradio-container .contain .card > .card-content{
         | 
| 340 | 
            +
                background-color: #404652 !important;
         | 
| 341 | 
            +
            }
         | 
| 342 | 
            +
            body.dark .card-footer{
         | 
| 343 | 
            +
                background-color: #24272e !important;
         | 
| 344 | 
            +
            }
         | 
| 345 |  | 
| 346 | 
             
            .doc-ref{
         | 
| 347 | 
             
                color:#dc2626!important;
         | 

