pratikshahp commited on
Commit
9f19fbb
·
verified ·
1 Parent(s): 030e349

Update app.py

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