Spaces:
Sleeping
Sleeping
| """ | |
| Custom CSS styles for Streamlit application | |
| """ | |
| def get_custom_css() -> str: | |
| """Get custom CSS styles as a string""" | |
| return """ | |
| <style> | |
| .main-header { | |
| font-size: 2.5rem; | |
| font-weight: bold; | |
| color: #1f77b4; | |
| text-align: center; | |
| margin-bottom: 1rem; | |
| width: 100%; | |
| display: block; | |
| } | |
| .subtitle { | |
| font-size: 1.2rem; | |
| color: #666; | |
| text-align: center; | |
| margin-bottom: 2rem; | |
| width: 100%; | |
| display: block; | |
| } | |
| .session-info { | |
| background-color: #f0f2f6; | |
| padding: 10px; | |
| border-radius: 5px; | |
| margin-bottom: 20px; | |
| font-size: 0.9rem; | |
| } | |
| .user-message { | |
| background-color: #007bff; | |
| color: white; | |
| padding: 12px 16px; | |
| border-radius: 18px 18px 4px 18px; | |
| margin: 8px 0; | |
| margin-left: 20%; | |
| word-wrap: break-word; | |
| } | |
| .bot-message { | |
| background-color: #f1f3f4; | |
| color: #333; | |
| padding: 12px 16px; | |
| border-radius: 18px 18px 18px 4px; | |
| margin: 8px 0; | |
| margin-right: 20%; | |
| word-wrap: break-word; | |
| border: 1px solid #e0e0e0; | |
| } | |
| .filter-section { | |
| margin-bottom: 20px; | |
| padding: 15px; | |
| background-color: #f8f9fa; | |
| border-radius: 8px; | |
| border: 1px solid #e9ecef; | |
| } | |
| .filter-title { | |
| font-weight: bold; | |
| margin-bottom: 10px; | |
| color: #495057; | |
| } | |
| .feedback-section { | |
| background-color: #f8f9fa; | |
| padding: 20px; | |
| border-radius: 10px; | |
| margin-top: 30px; | |
| border: 2px solid #dee2e6; | |
| } | |
| .retrieval-history { | |
| background-color: #ffffff; | |
| padding: 15px; | |
| border-radius: 5px; | |
| margin: 10px 0; | |
| border-left: 4px solid #007bff; | |
| } | |
| .retrieval-distribution-container { | |
| background-color: #ffffff; | |
| padding: 25px; | |
| border-radius: 10px; | |
| margin: 20px 0; | |
| border: 2px solid #e0e0e0; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); | |
| } | |
| .metric-label { | |
| font-size: 0.9rem; | |
| color: #555; | |
| margin-bottom: 5px; | |
| text-align: center; | |
| } | |
| .metric-value { | |
| font-size: 1.8rem; | |
| font-weight: bold; | |
| color: #000000; | |
| text-align: center; | |
| } | |
| .metric-container { | |
| text-align: center; | |
| padding: 10px; | |
| } | |
| </style> | |
| """ | |