LPX55
commited on
Commit
·
30cd7dd
1
Parent(s):
6a5429a
Update results display to use indexed results array
Browse files- Modify generate_results_html to access model results directly from results list
- Replace dictionary-based result retrieval with list indexing
- Maintain consistent display of model results with new array structure
app.py
CHANGED
@@ -204,23 +204,23 @@ def generate_results_html(results):
|
|
204 |
<div class="row mt-4">
|
205 |
<div class="col">
|
206 |
<h5>SwinV2/detect <span class="badge badge-secondary">M1</span></h5>
|
207 |
-
<p>{results
|
208 |
</div>
|
209 |
<div class="col">
|
210 |
<h5>ViT/AI-vs-Real <span class="badge badge-secondary">M2</span></h5>
|
211 |
-
<p>{results
|
212 |
</div>
|
213 |
<div class="col">
|
214 |
<h5>Swin/SDXL <span class="badge badge-secondary">M3</span></h5>
|
215 |
-
<p>{results
|
216 |
</div>
|
217 |
<div class="col">
|
218 |
<h5>Swin/SDXL-FLUX <span class="badge badge-secondary">M4</span></h5>
|
219 |
-
<p>{results
|
220 |
</div>
|
221 |
<div class="col">
|
222 |
<h5>GOAT <span class="badge badge-secondary">M5</span></h5>
|
223 |
-
<p>{results
|
224 |
</div>
|
225 |
</div>
|
226 |
</div>
|
|
|
204 |
<div class="row mt-4">
|
205 |
<div class="col">
|
206 |
<h5>SwinV2/detect <span class="badge badge-secondary">M1</span></h5>
|
207 |
+
<p>{results[0][3]}</p>
|
208 |
</div>
|
209 |
<div class="col">
|
210 |
<h5>ViT/AI-vs-Real <span class="badge badge-secondary">M2</span></h5>
|
211 |
+
<p>{results[1][3]}</p>
|
212 |
</div>
|
213 |
<div class="col">
|
214 |
<h5>Swin/SDXL <span class="badge badge-secondary">M3</span></h5>
|
215 |
+
<p>{results[2][3]}</p>
|
216 |
</div>
|
217 |
<div class="col">
|
218 |
<h5>Swin/SDXL-FLUX <span class="badge badge-secondary">M4</span></h5>
|
219 |
+
<p>{results[3][3]}</p>
|
220 |
</div>
|
221 |
<div class="col">
|
222 |
<h5>GOAT <span class="badge badge-secondary">M5</span></h5>
|
223 |
+
<p>{results[4][3]}</p>
|
224 |
</div>
|
225 |
</div>
|
226 |
</div>
|