Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def custom_css():
|
|
| 44 |
transition: background-color 0.3s ease;
|
| 45 |
}
|
| 46 |
.stButton>button:hover {
|
| 47 |
-
background-color: #
|
| 48 |
}
|
| 49 |
.stTextInput, .stTextArea {
|
| 50 |
background-color: #fff;
|
|
@@ -191,8 +191,12 @@ def main():
|
|
| 191 |
# Embed MermaidFlow Editor in iframe
|
| 192 |
st.markdown(f'<iframe src="{mermaidflow_url}" width="100%" height="600px"></iframe>', unsafe_allow_html=True)
|
| 193 |
|
| 194 |
-
#
|
| 195 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
else:
|
| 197 |
st.error("Failed to generate diagram code.")
|
| 198 |
else:
|
|
|
|
| 44 |
transition: background-color 0.3s ease;
|
| 45 |
}
|
| 46 |
.stButton>button:hover {
|
| 47 |
+
background-color: #f1c232;
|
| 48 |
}
|
| 49 |
.stTextInput, .stTextArea {
|
| 50 |
background-color: #fff;
|
|
|
|
| 191 |
# Embed MermaidFlow Editor in iframe
|
| 192 |
st.markdown(f'<iframe src="{mermaidflow_url}" width="100%" height="600px"></iframe>', unsafe_allow_html=True)
|
| 193 |
|
| 194 |
+
# Instruction Expander with step-by-step guide
|
| 195 |
+
with st.expander("Instruction to Generate Diagram"):
|
| 196 |
+
st.markdown("""
|
| 197 |
+
**Copy and paste the Generated Mermaid Code** in the Live Editor and download the generated diagram by clicking on **Export as SVG** format to get a high-resolution generated image.
|
| 198 |
+
""")
|
| 199 |
+
|
| 200 |
else:
|
| 201 |
st.error("Failed to generate diagram code.")
|
| 202 |
else:
|