Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -95,12 +95,36 @@ def process_and_query(openai_api_key, llama_parse_api_key, uploaded_file, select
|
|
95 |
# --- Gradio Interface ---
|
96 |
with gr.Blocks(
|
97 |
title="Excel Sheet Q&A",
|
98 |
-
theme=gr.themes.Soft(),
|
99 |
-
css="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
) as iface:
|
101 |
gr.Markdown(
|
102 |
"""
|
103 |
-
#
|
104 |
|
105 |
1. Enter your API keys.
|
106 |
2. Upload an Excel file.
|
|
|
95 |
# --- Gradio Interface ---
|
96 |
with gr.Blocks(
|
97 |
title="Excel Sheet Q&A",
|
98 |
+
theme=gr.themes.Soft(), # Keeping the Soft theme as a base
|
99 |
+
css="""
|
100 |
+
.gradio-container {
|
101 |
+
background: linear-gradient(to right, #e0eafc, #cfdef3); /* Softer, light blue gradient */
|
102 |
+
color: #333333; /* Darker text for contrast */
|
103 |
+
}
|
104 |
+
.gr-textbox, .gr-dropdown, .gr-file {
|
105 |
+
background-color: #ffffff; /* White backgrounds for input fields */
|
106 |
+
border: 1px solid #c0c0c0; /* Subtle border */
|
107 |
+
color: #333333;
|
108 |
+
}
|
109 |
+
.gr-button.primary {
|
110 |
+
background-color: #4a90e2; /* A pleasant blue for the primary button */
|
111 |
+
color: white;
|
112 |
+
border: none;
|
113 |
+
}
|
114 |
+
.gr-button.primary:hover {
|
115 |
+
background-color: #357ABD; /* Slightly darker on hover */
|
116 |
+
}
|
117 |
+
.gradio-container h1, .gradio-container h2, .gradio-container h3 {
|
118 |
+
color: #2c3e50; /* Darker headings */
|
119 |
+
}
|
120 |
+
.gradio-container label {
|
121 |
+
color: #555555; /* Slightly softer label text */
|
122 |
+
}
|
123 |
+
"""
|
124 |
) as iface:
|
125 |
gr.Markdown(
|
126 |
"""
|
127 |
+
# Excel Sheet Q&A
|
128 |
|
129 |
1. Enter your API keys.
|
130 |
2. Upload an Excel file.
|