-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
<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?