asthaaa300
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -105,46 +105,7 @@ WAVE_SVG = """
|
|
105 |
</svg>
|
106 |
"""
|
107 |
|
108 |
-
|
109 |
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 60">
|
110 |
-
<g transform="translate(0,0)">
|
111 |
-
<path d="M20,10 v25 M10,35 h20 M20,10 l-10,10 l10,-10 l10,10"
|
112 |
-
stroke="#e6f3ff"
|
113 |
-
fill="none"
|
114 |
-
stroke-width="2"/>
|
115 |
-
</g>
|
116 |
-
<g transform="translate(60,0)">
|
117 |
-
<path d="M10,30 l5,-15 h30 l5,15 h-40 v5 l40,0 v-5"
|
118 |
-
stroke="#e6f3ff"
|
119 |
-
fill="none"
|
120 |
-
stroke-width="2"/>
|
121 |
-
<path d="M20,15 v-5 h20 v5"
|
122 |
-
stroke="#e6f3ff"
|
123 |
-
fill="none"
|
124 |
-
stroke-width="2"/>
|
125 |
-
</g>
|
126 |
-
<g transform="translate(120,0)">
|
127 |
-
<path d="M25,5 l-7,35 h14 l-7,-35"
|
128 |
-
stroke="#e6f3ff"
|
129 |
-
fill="none"
|
130 |
-
stroke-width="2"/>
|
131 |
-
<path d="M18,15 h14 M18,25 h14"
|
132 |
-
stroke="#e6f3ff"
|
133 |
-
fill="none"
|
134 |
-
stroke-width="2"/>
|
135 |
-
</g>
|
136 |
-
<g transform="translate(180,0)">
|
137 |
-
<circle cx="20" cy="20" r="15"
|
138 |
-
stroke="#e6f3ff"
|
139 |
-
fill="none"
|
140 |
-
stroke-width="2"/>
|
141 |
-
<path d="M20,5 v30 M5,20 h30 M15,15 l10,10 M25,15 l-10,10"
|
142 |
-
stroke="#e6f3ff"
|
143 |
-
fill="none"
|
144 |
-
stroke-width="2"/>
|
145 |
-
</g>
|
146 |
-
</svg>
|
147 |
-
"""
|
148 |
|
149 |
custom_css = """
|
150 |
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
|
@@ -336,32 +297,15 @@ textarea {
|
|
336 |
|
337 |
# Main application
|
338 |
# Header with wave background and maritime icons
|
339 |
-
|
340 |
-
BUSY_IMG = os.path.join(IMAGES_DIR, "busy.jpg")
|
341 |
-
CARGO_IMG = os.path.join(IMAGES_DIR, "cargo.jpg")
|
342 |
-
FULL_IMG = os.path.join(IMAGES_DIR, "full.jpg")
|
343 |
with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
|
344 |
# Header with wave background and maritime icons
|
345 |
-
gr.HTML(
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
<h1 class="header-title">Maritime Legal Compliance</h1>
|
351 |
-
<div class="maritime-images">
|
352 |
-
<div class="maritime-image-container">
|
353 |
-
<img src="{BUSY_IMG}" alt="Modern port with cargo vessels" class="maritime-image">
|
354 |
-
</div>
|
355 |
-
<div class="maritime-image-container">
|
356 |
-
<img src="{CARGO_IMG}" alt="Container ship at sea" class="maritime-image">
|
357 |
-
</div>
|
358 |
-
<div class="maritime-image-container">
|
359 |
-
<img src="{CARGO_IMG}" alt="Coastal waterway" class="maritime-image">
|
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 |
|
|
|
105 |
</svg>
|
106 |
"""
|
107 |
|
108 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
custom_css = """
|
111 |
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');
|
|
|
297 |
|
298 |
# Main application
|
299 |
# Header with wave background and maritime icons
|
300 |
+
|
|
|
|
|
|
|
301 |
with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
|
302 |
# Header with wave background and maritime icons
|
303 |
+
gr.HTML("""
|
304 |
+
<div class="header-container">
|
305 |
+
<h1 class="header-title">Maritime Legal Compliance</h1>
|
306 |
+
<p class="header-subtitle">AI-powered assistance for Indian maritime law queries</p>
|
307 |
+
<p class="header-subtitle">This chatbot uses Fine-tuned LLAMA-3.1 model personalised specifically to provide assistance with Indian maritime legal queries.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
</div>
|
|
|
|
|
|
|
309 |
""")
|
310 |
|
311 |
|