awacke1 commited on
Commit
4bca977
·
1 Parent(s): 208e21c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +55 -0
app.py CHANGED
@@ -15,6 +15,61 @@ from tokenizers import Tokenizer, AddedToken
15
  from st_click_detector import click_detector
16
 
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  st.graphviz_chart('''
19
  digraph R {
20
  rankdir=LR
 
15
  from st_click_detector import click_detector
16
 
17
 
18
+
19
+ st.graphviz_chart('''
20
+ digraph G {
21
+ rankdir=LR
22
+ node [shape=plaintext]
23
+ a [
24
+ label=<
25
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
26
+ <TR><TD ROWSPAN="3" BGCOLOR="yellow">class</TD></TR>
27
+ <TR><TD PORT="here" BGCOLOR="lightblue">qualifier</TD></TR>
28
+ </TABLE>>
29
+ ]
30
+ b [shape=ellipse style=filled
31
+ label=<
32
+ <TABLE BGCOLOR="bisque">
33
+ <TR>
34
+ <TD COLSPAN="3">elephant</TD>
35
+ <TD ROWSPAN="2" BGCOLOR="chartreuse"
36
+ VALIGN="bottom" ALIGN="right">two</TD>
37
+ </TR>
38
+ <TR>
39
+ <TD COLSPAN="2" ROWSPAN="2">
40
+ <TABLE BGCOLOR="grey">
41
+ <TR><TD>corn</TD></TR>
42
+ <TR><TD BGCOLOR="yellow">c</TD></TR>
43
+ <TR><TD>f</TD></TR>
44
+ </TABLE>
45
+ </TD>
46
+ <TD BGCOLOR="white">penguin</TD>
47
+ </TR>
48
+ <TR>
49
+ <TD COLSPAN="2" BORDER="4" ALIGN="right" PORT="there">4</TD>
50
+ </TR>
51
+ </TABLE>>
52
+ ]
53
+ c [
54
+ label=<long line 1<BR/>line 2<BR ALIGN="LEFT"/>line 3<BR ALIGN="RIGHT"/>>
55
+ ]
56
+
57
+ subgraph { rank=same b c }
58
+ a:here -> b:there [dir=both arrowtail=diamond]
59
+ c -> b
60
+ d [shape=triangle]
61
+ d -> c [label=<
62
+ <TABLE>
63
+ <TR>
64
+ <TD BGCOLOR="red" WIDTH="10"> </TD>
65
+ <TD>Edge labels<BR/>also</TD>
66
+ <TD BGCOLOR="blue" WIDTH="10"> </TD>
67
+ </TR>
68
+ </TABLE>>
69
+ ]
70
+ }
71
+ ''')
72
+
73
  st.graphviz_chart('''
74
  digraph R {
75
  rankdir=LR