Kal1510 commited on
Commit
55f05a7
·
verified ·
1 Parent(s): ec6ddd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -400,16 +400,24 @@ CSS = f"""
400
 
401
 
402
 
403
- def format_output(outline):
404
- return f"""
405
- <div style="
406
- background: rgba(255,255,255,0.9);
 
 
 
407
  padding: 20px;
 
408
  border-radius: 10px;
409
- ">
410
- {outline}
 
 
 
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: