Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}")
|