Skip to content
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

Sourcery refactored master branch #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sourcery-ai[bot]
Copy link

@sourcery-ai sourcery-ai bot commented Oct 31, 2023

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from SurendraRedd October 31, 2023 16:38
features = pd.DataFrame(data, index=[0])
return features
return pd.DataFrame(data, index=[0])
Copy link
Author

Choose a reason for hiding this comment

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

Function inputFeatures refactored with the following changes:

final_img = dodgeV2(img_gray, img_smoothing)
return(final_img)
return dodgeV2(img_gray, img_smoothing)
Copy link
Author

Choose a reason for hiding this comment

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

Function pencilsketch refactored with the following changes:

Comment on lines -49 to +51
df = pd.read_csv("https://github.com/SurendraRedd/StreamlitProjects/raw/master/lang.csv")
return df
return pd.read_csv(
"https://github.com/SurendraRedd/StreamlitProjects/raw/master/lang.csv"
)
Copy link
Author

Choose a reason for hiding this comment

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

Function load_data refactored with the following changes:

Comment on lines -78 to +79
st.markdown('<i class="material-icons">{}</i>'.format("people"), unsafe_allow_html=True)
st.markdown('<i class="material-icons">people</i>', unsafe_allow_html=True)
Copy link
Author

Choose a reason for hiding this comment

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

Function main refactored with the following changes:

finalImg = dodgeV2(grayScaleImg,smoothImg)
return finalImg
return dodgeV2(grayScaleImg,smoothImg)
Copy link
Author

Choose a reason for hiding this comment

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

Function imageConversion refactored with the following changes:

Comment on lines -28 to +38
st.title("Convert an image in to pencil sketch")
st.subheader("This application has options to select the image either from sidebar or in mainpage.")
html_temp = """
st.title("Convert an image in to pencil sketch")
st.subheader("This application has options to select the image either from sidebar or in mainpage.")
html_temp = """
<body style="background-color:red;">
<div style="background-color:teal ;padding:10px">
<h2 style="color:white;text-align:center;">Image to Pencil Sketch App</h2>
</div>
</body>
"""
st.markdown(html_temp, unsafe_allow_html=True)
st.write("-----------------------------------------------------------------------")
st.write("""
st.markdown(html_temp, unsafe_allow_html=True)
st.write("-----------------------------------------------------------------------")
st.write("""
Copy link
Author

Choose a reason for hiding this comment

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

Function main refactored with the following changes:

This removes the following comments ( why? ):

#st.error("Select the image to proceed!")

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.

0 participants