Spaces:
Sleeping
Sleeping
Update app.py
Browse filesjournal. chat.
app.py
CHANGED
|
@@ -1004,10 +1004,66 @@ def export_data() -> str:
|
|
| 1004 |
|
| 1005 |
# Define custom CSS
|
| 1006 |
custom_css = """
|
| 1007 |
-
|
| 1008 |
-
.
|
| 1009 |
-
|
| 1010 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1011 |
"""
|
| 1012 |
|
| 1013 |
# Initialize storage and components
|
|
|
|
| 1004 |
|
| 1005 |
# Define custom CSS
|
| 1006 |
custom_css = """
|
| 1007 |
+
/* Full-screen layout: remove padding and margins, use full width */
|
| 1008 |
+
.gradio-container {
|
| 1009 |
+
width: 100vw !important;
|
| 1010 |
+
max-width: 100% !important;
|
| 1011 |
+
padding: 0 !important;
|
| 1012 |
+
margin: 0 !important;
|
| 1013 |
+
background-color: #000000 !important; /* Black background */
|
| 1014 |
+
color: #ffffff !important; /* White text for contrast */
|
| 1015 |
+
}
|
| 1016 |
+
|
| 1017 |
+
/* Remove padding and ensure full-width components */
|
| 1018 |
+
.response-area, .input-area, .history-display, .analytics-display {
|
| 1019 |
+
padding: 0 !important;
|
| 1020 |
+
margin: 0 !important;
|
| 1021 |
+
width: 100% !important;
|
| 1022 |
+
box-sizing: border-box !important;
|
| 1023 |
+
border: 1px solid #333333 !important; /* Subtle border for visibility */
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
/* Textbox and input styling */
|
| 1027 |
+
.response-area, .history-display, .analytics-display {
|
| 1028 |
+
background-color: #1a1a1a !important; /* Dark gray for textboxes to improve readability */
|
| 1029 |
+
color: #ffffff !important;
|
| 1030 |
+
border-radius: 0 !important; /* Remove rounded corners for full-screen look */
|
| 1031 |
+
}
|
| 1032 |
+
|
| 1033 |
+
/* Input area */
|
| 1034 |
+
.input-area {
|
| 1035 |
+
background-color: #1a1a1a !important;
|
| 1036 |
+
color: #ffffff !important;
|
| 1037 |
+
border: 1px solid #333333 !important;
|
| 1038 |
+
}
|
| 1039 |
+
|
| 1040 |
+
/* Font styling */
|
| 1041 |
+
* {
|
| 1042 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
| 1043 |
+
font-size: 16px !important; /* Slightly larger for readability */
|
| 1044 |
+
}
|
| 1045 |
+
|
| 1046 |
+
/* Button styling for contrast */
|
| 1047 |
+
button {
|
| 1048 |
+
background-color: #333333 !important;
|
| 1049 |
+
color: #ffffff !important;
|
| 1050 |
+
border: 1px solid #555555 !important;
|
| 1051 |
+
}
|
| 1052 |
+
button:hover {
|
| 1053 |
+
background-color: #555555 !important;
|
| 1054 |
+
}
|
| 1055 |
+
|
| 1056 |
+
/* Dropdown styling */
|
| 1057 |
+
select {
|
| 1058 |
+
background-color: #1a1a1a !important;
|
| 1059 |
+
color: #ffffff !important;
|
| 1060 |
+
border: 1px solid #333333 !important;
|
| 1061 |
+
}
|
| 1062 |
+
|
| 1063 |
+
/* Markdown text */
|
| 1064 |
+
.markdown {
|
| 1065 |
+
color: #ffffff !important;
|
| 1066 |
+
}
|
| 1067 |
"""
|
| 1068 |
|
| 1069 |
# Initialize storage and components
|