Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -410,14 +410,19 @@ async def predict(image):
|
|
410 |
dogs_info += '</div>'
|
411 |
|
412 |
html_output = f"""
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
|
|
|
|
|
|
|
|
|
|
421 |
|
422 |
if buttons:
|
423 |
html_output += """
|
|
|
410 |
dogs_info += '</div>'
|
411 |
|
412 |
html_output = f"""
|
413 |
+
<style>
|
414 |
+
.dog-info {{ border: 1px solid #ddd; margin-bottom: 20px; padding: 15px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }}
|
415 |
+
.dog-info h2 {{ background-color: #f0f0f0; padding: 10px; margin: -15px -15px 15px -15px; border-radius: 5px 5px 0 0; }}
|
416 |
+
.breed-buttons {{ margin-top: 10px; }}
|
417 |
+
.breed-button {{ margin-right: 10px; margin-bottom: 10px; padding: 5px 10px; background-color: #4CAF50; color: white; border: none; border-radius: 3px; cursor: pointer; }}
|
418 |
+
</style>
|
419 |
+
{dogs_info}
|
420 |
+
<!-- DEBUG OUTPUT START -->
|
421 |
+
<pre style="display:none;">
|
422 |
+
{json.dumps({"dogs_info": dogs_info, "buttons": buttons}, indent=2)}
|
423 |
+
</pre>
|
424 |
+
<!-- DEBUG OUTPUT END -->
|
425 |
+
"""
|
426 |
|
427 |
if buttons:
|
428 |
html_output += """
|