Skip to content

Commit

Permalink
Merge pull request #1 from blackary/argument-case
Browse files Browse the repository at this point in the history
Standardize arugment case
  • Loading branch information
blackary authored Sep 27, 2022
2 parents 46a8129 + 9dc6892 commit 0f15b2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="streamlit-camera-input-live",
version="0.1.0",
version="0.2.0",
author="Zachary Blackwood",
author_email="[email protected]",
description="Alternative version of st.camera_input which returns the webcam images live, without any button press needed",
Expand Down
14 changes: 7 additions & 7 deletions src/camera_input_live/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def camera_input_live(
height: int = 530,
width: int = 704,
key: Optional[str] = None,
showControls: bool = True,
startLabel: str = "Start capturing",
stopLabel: str = "Pause capturing",
show_controls: bool = True,
start_label: str = "Start capturing",
stop_label: str = "Pause capturing",
) -> Optional[BytesIO]:
"""
Add a descriptive docstring
Expand All @@ -30,9 +30,9 @@ def camera_input_live(
height=height,
width=width,
debounce=debounce,
showControls=showControls,
startLabel=startLabel,
stopLabel=stopLabel,
showControls=show_controls,
startLabel=start_label,
stopLabel=stop_label,
key=key,
)

Expand All @@ -49,7 +49,7 @@ def camera_input_live(
def main():
st.write("## Example")

image = camera_input_live(showControls=True)
image = camera_input_live(show_controls=True)

if image is not None:
st.image(image)
Expand Down

0 comments on commit 0f15b2d

Please sign in to comment.