Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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="
|
|
|
|
| 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()]
|