AdityaRatan commited on
Commit
ed63163
·
verified ·
1 Parent(s): d0693a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +92 -2
app.py CHANGED
@@ -36,7 +36,7 @@ chat_model = genai.GenerativeModel('"gemini-2.0-pro-exp-02-05"')
36
 
37
 
38
  # Enhanced CSS for better header styling
39
- CUSTOM_CSS = """
40
  .gradio-container {
41
  max-width: 1200px !important;
42
  margin: auto !important;
@@ -88,7 +88,97 @@ CUSTOM_CSS = """
88
  font-style: italic !important;
89
  }
90
 
91
- [... rest of the CSS remains the same ...]"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  def create_interface():
94
  """Create Gradio interface with enhanced UI"""
 
36
 
37
 
38
  # Enhanced CSS for better header styling
39
+ CUSTOM_CSS = '''
40
  .gradio-container {
41
  max-width: 1200px !important;
42
  margin: auto !important;
 
88
  font-style: italic !important;
89
  }
90
 
91
+ .status-box {
92
+ background: #363636 !important;
93
+ border-left: 4px solid #3498DB !important;
94
+ padding: 15px !important;
95
+ margin: 10px 0 !important;
96
+ border-radius: 0 5px 5px 0 !important;
97
+ color: #ffffff !important;
98
+ }
99
+
100
+ .chart-container {
101
+ background: #2d2d2d !important;
102
+ padding: 20px !important;
103
+ border-radius: 10px !important;
104
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
105
+ color: #ffffff !important;
106
+ }
107
+
108
+ .chat-container {
109
+ height: 400px !important;
110
+ overflow-y: auto !important;
111
+ border: 1px solid #404040 !important;
112
+ border-radius: 10px !important;
113
+ padding: 15px !important;
114
+ background: #2d2d2d !important;
115
+ color: #ffffff !important;
116
+ }
117
+
118
+ .file-upload {
119
+ border: 2px dashed #404040 !important;
120
+ border-radius: 10px !important;
121
+ padding: 20px !important;
122
+ text-align: center !important;
123
+ background: #2d2d2d !important;
124
+ color: #ffffff !important;
125
+ }
126
+
127
+ .result-box {
128
+ background: #363636 !important;
129
+ border: 1px solid #404040 !important;
130
+ border-radius: 10px !important;
131
+ padding: 20px !important;
132
+ margin-top: 15px !important;
133
+ color: #ffffff !important;
134
+ }
135
+
136
+ .tab-content {
137
+ background: #2d2d2d !important;
138
+ padding: 20px !important;
139
+ border-radius: 10px !important;
140
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
141
+ color: #ffffff !important;
142
+ }
143
+
144
+ /* Form elements */
145
+ input, select, textarea {
146
+ background: #363636 !important;
147
+ color: #ffffff !important;
148
+ border: 1px solid #404040 !important;
149
+ }
150
+
151
+ input:focus, select:focus, textarea:focus {
152
+ border-color: #3498DB !important;
153
+ box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
154
+ }
155
+
156
+ /* Buttons */
157
+ .action-button {
158
+ background: #3498DB !important;
159
+ color: white !important;
160
+ border: none !important;
161
+ padding: 10px 20px !important;
162
+ border-radius: 5px !important;
163
+ cursor: pointer !important;
164
+ transition: all 0.3s ease !important;
165
+ }
166
+
167
+ .action-button:hover {
168
+ background: #2980B9 !important;
169
+ transform: translateY(-2px) !important;
170
+ box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
171
+ }
172
+
173
+ /* Footer */
174
+ .footer {
175
+ text-align: center !important;
176
+ padding: 20px !important;
177
+ margin-top: 40px !important;
178
+ border-top: 1px solid #404040 !important;
179
+ color: #888888 !important;
180
+ }
181
+ '''
182
 
183
  def create_interface():
184
  """Create Gradio interface with enhanced UI"""