shukdevdatta123 commited on
Commit
718b757
·
verified ·
1 Parent(s): d9841cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -487,4 +487,20 @@ if openai_api_key:
487
  # Button to navigate to the external voice chat link
488
  if st.button("Go to Graph Tutorial"):
489
  st.write("Redirecting to Graph Tutorial...") # You can customize this message
490
- st.markdown(f'<a href="https://shukdevdatta123-networkx-tutorial.hf.space" target="_blank">Go to Graph Tutorial</a>', unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  # Button to navigate to the external voice chat link
488
  if st.button("Go to Graph Tutorial"):
489
  st.write("Redirecting to Graph Tutorial...") # You can customize this message
490
+ st.markdown(f'<a href="https://shukdevdatta123-networkx-tutorial.hf.space" target="_blank">Go to Graph Tutorial</a>', unsafe_allow_html=True)
491
+
492
+ # **New Section: Text-To-Diagram-Generator**
493
+ elif mode == "Text-To-Diagram-Generator":
494
+ st.header("Text-To-Diagram-Generator")
495
+
496
+ # Display a description or instructions
497
+ st.write("Click the button below to go to Text-To-Diagram-Generator.")
498
+
499
+
500
+ gif = "200w.gif" # Ensure the file is in the correct directory
501
+ st.image(gif, use_container_width=150) # Adjust the size as per preference
502
+
503
+ # Button to navigate to the external voice chat link
504
+ if st.button("Go to Text-To-Diagram-Generator"):
505
+ st.write("Redirecting to Text-To-Diagram-Generator...") # You can customize this message
506
+ st.markdown(f'<a href="https://shukdevdatta123-text-2-diagram.hf.space" target="_blank">Go to Text-To-Diagram-Generator</a>', unsafe_allow_html=True)