shukdevdatta123 commited on
Commit
7a19b20
·
verified ·
1 Parent(s): 8120f62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -166,6 +166,12 @@ def main():
166
  # Create a progress bar
167
  progress_bar = st.progress(0)
168
 
 
 
 
 
 
 
169
  if st.button("Generate Diagram"):
170
  if prompt:
171
  # Simulate the progress
@@ -191,12 +197,6 @@ 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
- # 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:
 
166
  # Create a progress bar
167
  progress_bar = st.progress(0)
168
 
169
+ # Instruction Expander with step-by-step guide
170
+ with st.expander("Instruction to Generate Diagram"):
171
+ st.markdown("""
172
+ **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.
173
+ """)
174
+
175
  if st.button("Generate Diagram"):
176
  if prompt:
177
  # Simulate the progress
 
197
  # Embed MermaidFlow Editor in iframe
198
  st.markdown(f'<iframe src="{mermaidflow_url}" width="100%" height="600px"></iframe>', unsafe_allow_html=True)
199
 
 
 
 
 
 
 
200
  else:
201
  st.error("Failed to generate diagram code.")
202
  else: