pratikshahp commited on
Commit
63690e5
·
verified ·
1 Parent(s): e3530d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -82,7 +82,10 @@ if st.button("Get Weather Information and Review"):
82
  st.write(review[2].content)
83
  st.subheader("Mermaid Graph")
84
  st.write("Check out this [mermaid link](https://mermaid.live/) to display a graph with following data")
85
- st.write(graph.get_graph().draw_mermaid())
 
 
 
86
  except Exception as e:
87
  st.error(f"Error generating weather review: {e}")
88
  else:
 
82
  st.write(review[2].content)
83
  st.subheader("Mermaid Graph")
84
  st.write("Check out this [mermaid link](https://mermaid.live/) to display a graph with following data")
85
+ #st.write(graph.get_graph().draw_mermaid())
86
+ mermaid_code = graph.get_graph().draw_mermaid()
87
+ st.markdown(f"```mermaid\n{mermaid_code}\n```", unsafe_allow_html=True)
88
+
89
  except Exception as e:
90
  st.error(f"Error generating weather review: {e}")
91
  else: