asthaaa300 commited on
Commit
ac89835
·
verified ·
1 Parent(s): ec0393b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -311,7 +311,6 @@ textarea {
311
  .gr-button {
312
  font-family: 'Ubuntu', sans-serif !important;
313
  }
314
-
315
  .maritime-images {
316
  display: grid;
317
  grid-template-columns: repeat(3, 1fr);
@@ -320,7 +319,6 @@ textarea {
320
  max-width: 1200px;
321
  padding: 0 1rem;
322
  }
323
-
324
  .maritime-image {
325
  width: 100%;
326
  height: 200px;
@@ -331,33 +329,36 @@ textarea {
331
  transition: transform 0.3s ease;
332
  filter: contrast(110%) saturate(110%);
333
  }
334
-
335
  .maritime-image:hover {
336
  transform: scale(1.02);
337
  }
338
-
339
  """
340
 
341
  # Main application
342
  # Header with wave background and maritime icons
343
 
344
- BUSY_IMG = "https://huggingface.co/asthaaa300/Maritime-Legal-Assistant/resolve/main/images/busy.jpg"
345
- CARGO_IMG = "https://huggingface.co/asthaaa300/Maritime-Legal-Assistant/resolve/main/images/cargo.jpg"
346
- FULL_IMG = "https://huggingface.co/asthaaa300/Maritime-Legal-Assistant/resolve/main/images/full.jpg"
347
  with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
348
-
349
  gr.HTML(f"""
 
 
 
 
 
350
  <div class="maritime-images">
351
  <div class="maritime-image-container">
352
- <img src="{BUSY_IMG}" alt="Modern port with cargo vessels" class="maritime-image">
353
  </div>
354
  <div class="maritime-image-container">
355
- <img src="{CARGO_IMG}" alt="Container ship at sea" class="maritime-image">
356
  </div>
357
  <div class="maritime-image-container">
358
- <img src="{FULL_IMG}" alt="Coastal waterway" class="maritime-image">
359
  </div>
360
  </div>
 
 
 
361
  """)
362
 
363
 
 
311
  .gr-button {
312
  font-family: 'Ubuntu', sans-serif !important;
313
  }
 
314
  .maritime-images {
315
  display: grid;
316
  grid-template-columns: repeat(3, 1fr);
 
319
  max-width: 1200px;
320
  padding: 0 1rem;
321
  }
 
322
  .maritime-image {
323
  width: 100%;
324
  height: 200px;
 
329
  transition: transform 0.3s ease;
330
  filter: contrast(110%) saturate(110%);
331
  }
 
332
  .maritime-image:hover {
333
  transform: scale(1.02);
334
  }
 
335
  """
336
 
337
  # Main application
338
  # Header with wave background and maritime icons
339
 
 
 
 
340
  with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
341
+ # Header with wave background and maritime icons
342
  gr.HTML(f"""
343
+ <div class="wave-background">
344
+ {WAVE_SVG}
345
+ </div>
346
+ <div class="header-container">
347
+ <h1 class="header-title">Maritime Legal Compliance</h1>
348
  <div class="maritime-images">
349
  <div class="maritime-image-container">
350
+ <img src="images/busy.jpg" alt="Modern port with cargo vessels" class="maritime-image">
351
  </div>
352
  <div class="maritime-image-container">
353
+ <img src="images/cargo.jpg" alt="Container ship at sea" class="maritime-image">
354
  </div>
355
  <div class="maritime-image-container">
356
+ <img src="images/full.jpg" alt="Coastal waterway" class="maritime-image">
357
  </div>
358
  </div>
359
+ <p class="header-subtitle">AI-powered assistance for Indian maritime law queries</p>
360
+ <p class="header-subtitle">This chatbot uses Fine-tuned LLAMA-3.1 model personalised specifically to provide assistance with Indian maritime legal queries.</p>
361
+ </div>
362
  """)
363
 
364