Skip to content

making some changes#3

Open
Mannxxx wants to merge 5 commits intorobinroy03:mainfrom
Mannxxx:main
Open

making some changes#3
Mannxxx wants to merge 5 commits intorobinroy03:mainfrom
Mannxxx:main

Conversation

@Mannxxx
Copy link
Copy Markdown

@Mannxxx Mannxxx commented Oct 3, 2023

  1. I've wrapped the Mermaid code inside st.write to display it within the Streamlit app.
  2. I've also set the page layout to "wide" using st.set_page_config(layout="wide") to provide a wider layout for the Mermaid diagram.
  3. I've applied CSS styling directly to the <pre class="mermaid"> element to control its appearance. This obviously can be further customized and styled as needed.

I think by making these changes, the Mermaid diagram should run more seamlessly within your Streamlit application, and the issue of the unexpected rectangle should be addressed.

Could you please check it once?

Copy link
Copy Markdown

@AbhijithGanesh AbhijithGanesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please compare this against the current main.py file. Creating a new file isn't useful

@Mannxxx
Copy link
Copy Markdown
Author

Mannxxx commented Oct 4, 2023

Yeah, I've updated the main file.

Comment thread main.py Outdated
else:
output = dict_to_mermaid(output)
store_to_gsheet(content, user_prompt=user_prompt, error=False, **st.secrets.gspread_credentials)
store_to_gsheet(content, user_prompt = user_prompt, error = True, **st.secrets.gspread_credentials) # passing google sheet credentials
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reasoning behind changing the boolean in function?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just checking for errors, but there's no actual necessity to set it to 'true.' As long as the application runs successfully, there's no need to worry about it. Although, I should probably change it back to 'false,' I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants