Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -219,6 +219,16 @@ st.markdown(
|
|
| 219 |
.stSidebar .stCheckbox {
|
| 220 |
margin-bottom: 20px;
|
| 221 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
</style>
|
| 223 |
""",
|
| 224 |
unsafe_allow_html=True,
|
|
@@ -373,7 +383,7 @@ with st.container():
|
|
| 373 |
<p><strong>Evidence Inference Time:</strong> {res['evidence_time']:.2f} seconds</p>
|
| 374 |
<p><strong>Verdict Inference Time:</strong> {res['verdict_time']:.2f} seconds</p>
|
| 375 |
<p><strong>Total Execution Time:</strong> {res['total_time']:.2f} seconds</p>
|
| 376 |
-
{f"<
|
| 377 |
</div>
|
| 378 |
""", unsafe_allow_html=True)
|
| 379 |
|
|
|
|
| 219 |
.stSidebar .stCheckbox {
|
| 220 |
margin-bottom: 20px;
|
| 221 |
}
|
| 222 |
+
|
| 223 |
+
.code-block {
|
| 224 |
+
background-color: #f5f5f5; /* Màu nền */
|
| 225 |
+
border: 1px solid #ccc; /* Viền */
|
| 226 |
+
padding: 10px; /* Khoảng cách bên trong */
|
| 227 |
+
border-radius: 5px; /* Bo tròn góc */
|
| 228 |
+
font-family: monospace; /* Font chữ đơn cách */
|
| 229 |
+
white-space: pre-wrap; /* Giữ nguyên định dạng xuống dòng */
|
| 230 |
+
color: #333; /* Màu chữ */
|
| 231 |
+
}
|
| 232 |
</style>
|
| 233 |
""",
|
| 234 |
unsafe_allow_html=True,
|
|
|
|
| 383 |
<p><strong>Evidence Inference Time:</strong> {res['evidence_time']:.2f} seconds</p>
|
| 384 |
<p><strong>Verdict Inference Time:</strong> {res['verdict_time']:.2f} seconds</p>
|
| 385 |
<p><strong>Total Execution Time:</strong> {res['total_time']:.2f} seconds</p>
|
| 386 |
+
{f"<div class='code-block'><pre>{res['details']}</pre></div>" if show_details else ""}
|
| 387 |
</div>
|
| 388 |
""", unsafe_allow_html=True)
|
| 389 |
|