shukdevdatta123 commited on
Commit
335afb4
·
verified ·
1 Parent(s): f068750

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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: #45a049;
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
- # Provide a direct link to MermaidFlow editor for convenience
195
- st.markdown(f"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.")
 
 
 
 
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: