Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,36 +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(), # Keeping the Soft theme as a base
|
| 99 |
css="""
|
| 100 |
.gradio-container {
|
| 101 |
-
background: linear-gradient(to right, #
|
| 102 |
-
color: #
|
| 103 |
}
|
| 104 |
.gr-textbox, .gr-dropdown, .gr-file {
|
| 105 |
-
background-color: #
|
| 106 |
-
border: 1px solid #
|
| 107 |
-
color: #
|
| 108 |
}
|
| 109 |
.gr-button.primary {
|
| 110 |
-
background-color: #
|
| 111 |
color: white;
|
| 112 |
border: none;
|
| 113 |
}
|
| 114 |
.gr-button.primary:hover {
|
| 115 |
-
background-color: #
|
| 116 |
}
|
| 117 |
.gradio-container h1, .gradio-container h2, .gradio-container h3 {
|
| 118 |
-
color: #
|
| 119 |
}
|
| 120 |
.gradio-container label {
|
| 121 |
-
color: #
|
| 122 |
}
|
| 123 |
"""
|
| 124 |
) as iface:
|
| 125 |
gr.Markdown(
|
| 126 |
"""
|
| 127 |
-
#
|
| 128 |
|
| 129 |
1. Enter your API keys.
|
| 130 |
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 for component structure
|
| 99 |
css="""
|
| 100 |
.gradio-container {
|
| 101 |
+
background: linear-gradient(to right, #232526, #414345); /* Dark gradient */
|
| 102 |
+
color: #E0E0E0; /* Light text for contrast */
|
| 103 |
}
|
| 104 |
.gr-textbox, .gr-dropdown, .gr-file {
|
| 105 |
+
background-color: #333333; /* Dark background for input fields */
|
| 106 |
+
border: 1px solid #555555; /* Subtle lighter border */
|
| 107 |
+
color: #E0E0E0; /* Light text inside inputs */
|
| 108 |
}
|
| 109 |
.gr-button.primary {
|
| 110 |
+
background-color: #5e72e4; /* A pleasant, vibrant blue for the primary button */
|
| 111 |
color: white;
|
| 112 |
border: none;
|
| 113 |
}
|
| 114 |
.gr-button.primary:hover {
|
| 115 |
+
background-color: #4a5cc2; /* Slightly darker on hover */
|
| 116 |
}
|
| 117 |
.gradio-container h1, .gradio-container h2, .gradio-container h3 {
|
| 118 |
+
color: #FFFFFF; /* White headings */
|
| 119 |
}
|
| 120 |
.gradio-container label {
|
| 121 |
+
color: #AAAAAA; /* Slightly dimmer 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.
|