Spaces:
Sleeping
Sleeping
Commit
·
cca62d0
1
Parent(s):
d119163
Initial commit: restore working version for Hugging Face Space
Browse files- Ai-ToolStack +0 -1
- app/static/img/logo.jpg +0 -0
- app/templates/index.html +2 -2
- app/utils/llm_client.py +1 -0
Ai-ToolStack
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
Subproject commit 355e81ab4a6aff4c45e72532c78a4f3f1e5433a9
|
|
|
|
app/static/img/logo.jpg
ADDED
![]() |
app/templates/index.html
CHANGED
@@ -270,7 +270,7 @@
|
|
270 |
<body>
|
271 |
<div class="header" style="position:relative;">
|
272 |
<h2 style="margin:0;">Car Damage & Parts Detection</h2>
|
273 |
-
<img src="/static/img/logo.
|
274 |
</div>
|
275 |
<div class="container">
|
276 |
<form method="post" action="/upload" enctype="multipart/form-data">
|
@@ -592,7 +592,7 @@
|
|
592 |
{% endif %}
|
593 |
</div>
|
594 |
<div class="footer">
|
595 |
-
© {{ 2025 }}
|
596 |
</div>
|
597 |
</body>
|
598 |
</html>
|
|
|
270 |
<body>
|
271 |
<div class="header" style="position:relative;">
|
272 |
<h2 style="margin:0;">Car Damage & Parts Detection</h2>
|
273 |
+
<img src="/static/img/logo.jpg" alt="Logo" class="logo" style="position:absolute; top:18px; right:32px; max-width:110px;">
|
274 |
</div>
|
275 |
<div class="container">
|
276 |
<form method="post" action="/upload" enctype="multipart/form-data">
|
|
|
592 |
{% endif %}
|
593 |
</div>
|
594 |
<div class="footer">
|
595 |
+
© {{ 2025 }} DS Team. All rights reserved.
|
596 |
</div>
|
597 |
</body>
|
598 |
</html>
|
app/utils/llm_client.py
CHANGED
@@ -16,6 +16,7 @@ class GroqAnalyzer:
|
|
16 |
base64_image = base64.b64encode(image_file.read()).decode()
|
17 |
|
18 |
system_message = """You are a professional car damage assessment expert. Your task is to analyze car images and provide structured, consistent damage reports.
|
|
|
19 |
|
20 |
Please follow these exact guidelines:
|
21 |
1. Use only these severity levels: High, Medium, Low
|
|
|
16 |
base64_image = base64.b64encode(image_file.read()).decode()
|
17 |
|
18 |
system_message = """You are a professional car damage assessment expert. Your task is to analyze car images and provide structured, consistent damage reports.
|
19 |
+
Please look the direction of car image to respond correctly and do the analysis based on the visible car parts and damage.
|
20 |
|
21 |
Please follow these exact guidelines:
|
22 |
1. Use only these severity levels: High, Medium, Low
|