asthaaa300 commited on
Commit
167198f
·
verified ·
1 Parent(s): 6c98a63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -48
app.py CHANGED
@@ -82,7 +82,6 @@ def handle_example_click(example_query: str):
82
  """Handle example query click by returning the query and empty chat history"""
83
  return example_query, []
84
 
85
-
86
  # SVG Definitions
87
  WAVE_SVG = """
88
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none">
@@ -310,62 +309,25 @@ textarea {
310
  .gr-button {
311
  font-family: 'Ubuntu', sans-serif !important;
312
  }
313
-
314
- .maritime-images {
315
- display: grid;
316
- grid-template-columns: repeat(3, 1fr);
317
- gap: 1rem;
318
- margin: 1.5rem auto;
319
- max-width: 1200px;
320
- padding: 0 1rem;
321
- }
322
-
323
- .maritime-image {
324
- width: 100%;
325
- height: 200px;
326
- object-fit: cover;
327
- border-radius: 8px;
328
- border: 2px solid #e6f3ff;
329
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
330
- transition: transform 0.3s ease;
331
- filter: contrast(110%) saturate(110%);
332
- }
333
-
334
- .maritime-image:hover {
335
- transform: scale(1.02);
336
- }
337
-
338
  """
339
 
340
  # Main application
341
- # Header with wave background and maritime icons
342
-
343
  with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
344
  # Header with wave background and maritime icons
345
  gr.HTML(f"""
346
- <div class="wave-background">
347
- {WAVE_SVG}
348
- </div>
349
- <div class="header-container">
350
- <h1 class="header-title">Maritime Legal Compliance</h1>
351
- <div class="maritime-images">
352
- <div class="maritime-image-container">
353
- <img src="images/busy.jpg" alt="Modern port with cargo vessels" class="maritime-image" onerror="this.src='/api/placeholder/800/450'">
354
- </div>
355
- <div class="maritime-image-container">
356
- <img src="images/cargo.jpg" alt="Container ship at sea" class="maritime-image" onerror="this.src='/api/placeholder/800/450'">
357
- </div>
358
- <div class="maritime-image-container">
359
- <img src="images/full.jpg" alt="Coastal waterway" class="maritime-image" onerror="this.src='/api/placeholder/800/450'">
360
  </div>
 
 
361
  </div>
362
- <p class="header-subtitle">AI-powered assistance for Indian maritime law queries</p>
363
- <p class="header-subtitle">This chatbot uses Fine-tuned LLAMA-3.1 model personalised specifically to provide assistance with Indian maritime legal queries.</p>
364
- </div>
365
  """)
366
 
367
-
368
-
369
  with gr.Row():
370
  # Enhanced sidebar with graphics
371
  with gr.Column(scale=1, elem_classes="sidebar"):
@@ -440,4 +402,4 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
440
  )
441
 
442
  if __name__ == "__main__":
443
- demo.launch()
 
82
  """Handle example query click by returning the query and empty chat history"""
83
  return example_query, []
84
 
 
85
  # SVG Definitions
86
  WAVE_SVG = """
87
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none">
 
309
  .gr-button {
310
  font-family: 'Ubuntu', sans-serif !important;
311
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  """
313
 
314
  # Main application
 
 
315
  with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
316
  # Header with wave background and maritime icons
317
  gr.HTML(f"""
318
+ <div class="wave-background">
319
+ {WAVE_SVG}
320
+ </div>
321
+ <div class="header-container">
322
+ <h1 class="header-title">Maritime Legal Compliance</h1>
323
+ <div class="maritime-icons">
324
+ {MARITIME_ICONS}
 
 
 
 
 
 
 
325
  </div>
326
+ <p class="header-subtitle">AI-powered assistance for Indian maritime law queries</p>
327
+ <p class="header-subtitle">This chatbot uses Fine-tuned LLAMA-3.1 model personalised specifically to provide assistance with Indian maritime legal queries.</p>
328
  </div>
 
 
 
329
  """)
330
 
 
 
331
  with gr.Row():
332
  # Enhanced sidebar with graphics
333
  with gr.Column(scale=1, elem_classes="sidebar"):
 
402
  )
403
 
404
  if __name__ == "__main__":
405
+ demo.launch()