Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,15 @@ if st.button("Get Weather Information and Review"):
|
|
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 |
except Exception as e:
|
89 |
st.error(f"Error generating weather review: {e}")
|
90 |
else:
|
|
|
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}")
|
98 |
else:
|