capradeepgujaran commited on
Commit
f51d4f8
·
verified ·
1 Parent(s): d57cf4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -40
app.py CHANGED
@@ -228,6 +228,7 @@ def download_snag_report(chat_history):
228
 
229
  return temp_file_path
230
 
 
231
  custom_css = """
232
  :root {
233
  --primary-color: #FF6B35;
@@ -296,45 +297,6 @@ body {
296
  background-color: #E85A2A !important;
297
  }
298
 
299
- .clear-button, .download-button {
300
- background-color: var(--secondary-color) !important;
301
- color: white !important;
302
- font-size: 1rem !important;
303
- padding: 0.5rem 1rem !important;
304
- border-radius: 5px !important;
305
- transition: background-color 0.3s ease;
306
- }
307
-
308
- .clear-button:hover, .download-button:hover {
309
- background-color: #003D6E !important;
310
- }
311
-
312
- .chatbot {
313
- border: 1px solid var(--border-color);
314
- border-radius: 10px;
315
- padding: 1rem;
316
- height: 400px;
317
- overflow-y: auto;
318
- background-color: white;
319
- }
320
-
321
- .chat-input {
322
- border: 1px solid var(--border-color);
323
- border-radius: 5px;
324
- padding: 0.75rem;
325
- width: 100%;
326
- font-size: 1rem;
327
- }
328
-
329
- .section-title {
330
- color: var(--secondary-color);
331
- font-size: 1.5rem;
332
- margin-top: 2rem;
333
- margin-bottom: 1rem;
334
- border-bottom: 2px solid var(--primary-color);
335
- padding-bottom: 0.5rem;
336
- }
337
-
338
  .info-row {
339
  display: flex;
340
  gap: 1rem;
@@ -348,6 +310,8 @@ body {
348
  border-radius: 5px;
349
  padding: 1rem;
350
  font-size: 0.9rem;
 
 
351
  }
352
 
353
  .info-box h4 {
@@ -372,6 +336,45 @@ body {
372
  margin-bottom: 0.5rem;
373
  }
374
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  .footer {
376
  margin-top: 2rem;
377
  padding-top: 1rem;
@@ -537,4 +540,4 @@ if __name__ == "__main__":
537
  except Exception as e:
538
  logger.error(f"Error when trying to launch the interface: {str(e)}")
539
  logger.error(traceback.format_exc())
540
- print("Failed to launch the Gradio interface. Please check the logs for more information.")
 
228
 
229
  return temp_file_path
230
 
231
+ # Custom CSS for improved styling
232
  custom_css = """
233
  :root {
234
  --primary-color: #FF6B35;
 
297
  background-color: #E85A2A !important;
298
  }
299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
  .info-row {
301
  display: flex;
302
  gap: 1rem;
 
310
  border-radius: 5px;
311
  padding: 1rem;
312
  font-size: 0.9rem;
313
+ height: 200px;
314
+ overflow-y: auto;
315
  }
316
 
317
  .info-box h4 {
 
336
  margin-bottom: 0.5rem;
337
  }
338
 
339
+ .section-title {
340
+ color: var(--secondary-color);
341
+ font-size: 1.5rem;
342
+ margin-top: 2rem;
343
+ margin-bottom: 1rem;
344
+ border-bottom: 2px solid var(--primary-color);
345
+ padding-bottom: 0.5rem;
346
+ }
347
+
348
+ .chatbot {
349
+ border: 1px solid var(--border-color);
350
+ border-radius: 10px;
351
+ padding: 1rem;
352
+ height: 400px;
353
+ overflow-y: auto;
354
+ background-color: white;
355
+ }
356
+
357
+ .chat-input {
358
+ border: 1px solid var(--border-color);
359
+ border-radius: 5px;
360
+ padding: 0.75rem;
361
+ width: 100%;
362
+ font-size: 1rem;
363
+ }
364
+
365
+ .clear-button, .download-button {
366
+ background-color: var(--secondary-color) !important;
367
+ color: white !important;
368
+ font-size: 1rem !important;
369
+ padding: 0.5rem 1rem !important;
370
+ border-radius: 5px !important;
371
+ transition: background-color 0.3s ease;
372
+ }
373
+
374
+ .clear-button:hover, .download-button:hover {
375
+ background-color: #003D6E !important;
376
+ }
377
+
378
  .footer {
379
  margin-top: 2rem;
380
  padding-top: 1rem;
 
540
  except Exception as e:
541
  logger.error(f"Error when trying to launch the interface: {str(e)}")
542
  logger.error(traceback.format_exc())
543
+ print("Failed to launch the Gradio interface. Please check the logs for more information.")