Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -443,10 +443,10 @@ def rag_predict_fn(text: str):
|
|
| 443 |
|
| 444 |
# HTML Output
|
| 445 |
html_output = f"""
|
| 446 |
-
<div style="font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; background: #1e1e1e; padding: 20px; border-radius: 15px;">
|
| 447 |
<div style="background: {color_grad}; padding: 25px; border-radius: 20px; color: white; text-align: center; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); border: 2px solid {border_col};">
|
| 448 |
<h2 style="margin: 0 0 10px 0; font-size: 36px; color: white; font-weight: bold;">{icon} {label}</h2>
|
| 449 |
-
<div style="font-size: 18px; color: #f0f0f0; margin-bottom: 10px;">
|
| 450 |
{explanation}
|
| 451 |
</div>
|
| 452 |
<div style="font-size: 14px; color: rgba(255,255,255,0.9); margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 10px;">
|
|
|
|
| 443 |
|
| 444 |
# HTML Output
|
| 445 |
html_output = f"""
|
| 446 |
+
<div style="font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; background: #1e1e1e; padding: 20px; border-radius: 15px; max-height: 600px; overflow-y: auto;">
|
| 447 |
<div style="background: {color_grad}; padding: 25px; border-radius: 20px; color: white; text-align: center; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); border: 2px solid {border_col};">
|
| 448 |
<h2 style="margin: 0 0 10px 0; font-size: 36px; color: white; font-weight: bold;">{icon} {label}</h2>
|
| 449 |
+
<div style="font-size: 18px; color: #f0f0f0; margin-bottom: 10px; text-align: left; white-space: pre-wrap;">
|
| 450 |
{explanation}
|
| 451 |
</div>
|
| 452 |
<div style="font-size: 14px; color: rgba(255,255,255,0.9); margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 10px;">
|