WeVi commited on
Commit
ae9c584
·
verified ·
1 Parent(s): d8a8d68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ import os
6
  def text_to_chart(text):
7
  # Create diagram logic (replace this with NLP if needed)
8
  dot = graphviz.Digraph(format='png')
9
- dot.attr(rankdir="LR", size="8,5")
 
10
 
11
  # Naive split into phrases by period
12
  steps = [s.strip() for s in text.split('.') if s.strip()]
 
6
  def text_to_chart(text):
7
  # Create diagram logic (replace this with NLP if needed)
8
  dot = graphviz.Digraph(format='png')
9
+ dot.attr(rankdir="LR", size="20,10") # Increase chart canvas size
10
+ dot.attr(dpi="300") # High-resolution output
11
 
12
  # Naive split into phrases by period
13
  steps = [s.strip() for s in text.split('.') if s.strip()]