Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -400,16 +400,24 @@ CSS = f"""
|
|
400 |
|
401 |
|
402 |
|
403 |
-
def format_output(
|
404 |
-
|
405 |
-
|
406 |
-
|
|
|
|
|
|
|
407 |
padding: 20px;
|
|
|
408 |
border-radius: 10px;
|
409 |
-
|
410 |
-
|
|
|
|
|
|
|
411 |
</div>
|
412 |
"""
|
|
|
413 |
|
414 |
def create_gradio_app():
|
415 |
with gr.Blocks(css=CSS) as demo:
|
|
|
400 |
|
401 |
|
402 |
|
403 |
+
def format_output(plan_text):
|
404 |
+
# Convert plain text or Markdown to styled HTML
|
405 |
+
html_content = markdown(plan_text)
|
406 |
+
styled_html = f"""
|
407 |
+
<div style='
|
408 |
+
font-family: "Segoe UI", sans-serif;
|
409 |
+
line-height: 1.6;
|
410 |
padding: 20px;
|
411 |
+
background-color: #ffffff;
|
412 |
border-radius: 10px;
|
413 |
+
border: 1px solid #ccc;
|
414 |
+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
415 |
+
color: #333;
|
416 |
+
'>
|
417 |
+
{html_content}
|
418 |
</div>
|
419 |
"""
|
420 |
+
return styled_html
|
421 |
|
422 |
def create_gradio_app():
|
423 |
with gr.Blocks(css=CSS) as demo:
|