unnecessary tab in graph generation deleted
This commit is contained in:
parent
0cb506fe38
commit
6a8f83f2b7
@ -90,10 +90,10 @@ def show_graph():
|
|||||||
chatbot_text = [word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(chatbot[x].split(' '))]
|
chatbot_text = [word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(chatbot[x].split(' '))]
|
||||||
user_text = [word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(user[x].split(' '))]
|
user_text = [word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(user[x].split(' '))]
|
||||||
graph.edge(' '.join(chatbot_text), ' '.join(user_text))
|
graph.edge(' '.join(chatbot_text), ' '.join(user_text))
|
||||||
try:
|
try:
|
||||||
graph.edge(' '.join(user_text), ' '.join([word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(chatbot[x + 1].split(' '))]))
|
graph.edge(' '.join(user_text), ' '.join([word + '\n' if i % 5 == 0 and i > 0 else word for i, word in enumerate(chatbot[x + 1].split(' '))]))
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
st.graphviz_chart(graph)
|
st.graphviz_chart(graph)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user