Update app.py
Browse files
app.py
CHANGED
@@ -326,18 +326,6 @@ body {
|
|
326 |
font-size: 1rem;
|
327 |
}
|
328 |
|
329 |
-
.groq-badge {
|
330 |
-
position: fixed;
|
331 |
-
bottom: 10px;
|
332 |
-
right: 10px;
|
333 |
-
background-color: var(--secondary-color);
|
334 |
-
color: white;
|
335 |
-
padding: 5px 10px;
|
336 |
-
border-radius: 5px;
|
337 |
-
font-weight: bold;
|
338 |
-
font-size: 0.9rem;
|
339 |
-
}
|
340 |
-
|
341 |
.section-title {
|
342 |
color: var(--secondary-color);
|
343 |
font-size: 1.5rem;
|
@@ -377,6 +365,32 @@ body {
|
|
377 |
margin-right: 0.5rem;
|
378 |
margin-bottom: 0.5rem;
|
379 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
"""
|
381 |
|
382 |
# Create the Gradio interface
|
@@ -450,25 +464,25 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
|
|
450 |
|
451 |
gr.HTML(
|
452 |
"""
|
453 |
-
<div class="
|
454 |
-
<
|
455 |
-
|
456 |
-
<
|
457 |
-
|
458 |
-
|
459 |
-
<
|
460 |
-
<
|
461 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
</div>
|
463 |
"""
|
464 |
)
|
465 |
|
466 |
-
gr.HTML(
|
467 |
-
"""
|
468 |
-
<div class="groq-badge">Powered by Groq</div>
|
469 |
-
"""
|
470 |
-
)
|
471 |
-
|
472 |
def process_files(files):
|
473 |
results = []
|
474 |
for file in files:
|
|
|
326 |
font-size: 1rem;
|
327 |
}
|
328 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
.section-title {
|
330 |
color: var(--secondary-color);
|
331 |
font-size: 1.5rem;
|
|
|
365 |
margin-right: 0.5rem;
|
366 |
margin-bottom: 0.5rem;
|
367 |
}
|
368 |
+
|
369 |
+
.footer {
|
370 |
+
margin-top: 2rem;
|
371 |
+
padding-top: 1rem;
|
372 |
+
border-top: 2px solid var(--primary-color);
|
373 |
+
display: flex;
|
374 |
+
justify-content: space-between;
|
375 |
+
align-items: center;
|
376 |
+
flex-wrap: wrap;
|
377 |
+
}
|
378 |
+
|
379 |
+
.groq-badge {
|
380 |
+
background-color: var(--secondary-color);
|
381 |
+
color: white;
|
382 |
+
padding: 8px 15px;
|
383 |
+
border-radius: 5px;
|
384 |
+
font-weight: bold;
|
385 |
+
font-size: 1rem;
|
386 |
+
display: inline-block;
|
387 |
+
}
|
388 |
+
|
389 |
+
.model-info {
|
390 |
+
color: var(--text-color);
|
391 |
+
font-size: 0.9rem;
|
392 |
+
margin-top: 0.5rem;
|
393 |
+
}
|
394 |
"""
|
395 |
|
396 |
# Create the Gradio interface
|
|
|
464 |
|
465 |
gr.HTML(
|
466 |
"""
|
467 |
+
<div class="footer">
|
468 |
+
<div>
|
469 |
+
<div class="groq-badge">Powered by Groq</div>
|
470 |
+
<div class="model-info">Model: llama-3.2-90b-vision-preview</div>
|
471 |
+
</div>
|
472 |
+
<div class="info-box" style="margin-bottom: 0;">
|
473 |
+
<h4>How to use:</h4>
|
474 |
+
<ol>
|
475 |
+
<li>Upload images or videos of your construction site</li>
|
476 |
+
<li>Click "Detect Snags" to analyze the files</li>
|
477 |
+
<li>Review the detected snags in the chat area</li>
|
478 |
+
<li>Ask follow-up questions about the snags or request more information</li>
|
479 |
+
<li>Download a comprehensive report for your records</li>
|
480 |
+
</ol>
|
481 |
+
</div>
|
482 |
</div>
|
483 |
"""
|
484 |
)
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
def process_files(files):
|
487 |
results = []
|
488 |
for file in files:
|