fsaudm commited on
Commit
9b40276
·
verified ·
1 Parent(s): 515cb60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,12 +39,12 @@ def text_to_flowchart(steps_text: str) -> str:
39
 
40
  # Create the flowchart using SchemDraw
41
  d = schemdraw.Drawing()
42
- d.add(elm.Start(label="Start"))
43
  for step in parsed_steps:
44
  d.add(elm.Arrow())
45
- d.add(elm.Process().label(step))
46
  d.add(elm.Arrow())
47
- d.add(elm.End(label="End"))
48
 
49
  # Render diagram to PNG and encode as a data URL
50
  buf = io.BytesIO()
 
39
 
40
  # Create the flowchart using SchemDraw
41
  d = schemdraw.Drawing()
42
+ d.add(elm.Roundbox().label("Start"))
43
  for step in parsed_steps:
44
  d.add(elm.Arrow())
45
+ d.add(elm.Box().label(step))
46
  d.add(elm.Arrow())
47
+ d.add(elm.Roundbox().label("End"))
48
 
49
  # Render diagram to PNG and encode as a data URL
50
  buf = io.BytesIO()