Skip to content

making some changes #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

making some changes #3

wants to merge 5 commits into from

Conversation

Mannxxx
Copy link

@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

@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
Author

Mannxxx commented Oct 4, 2023

Yeah, I've updated the main file.

main.py Outdated
@@ -34,21 +38,21 @@ def display(user_prompt, content):
store_to_gsheet(content, user_prompt=user_prompt, error=True, **st.secrets.gspread_credentials)
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
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
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