Update app.py for slider to only have int values so range doesn't fail

#6

I tried this demo on Gradio Docs and the run failed for me, when I tweaked slider value.

Cause was default increment allows float values and range(steps) fails for float values. Thus solving it in Gradio's idiomatic way... adding step=1 to Slider would only allow steps:int to be used. Avoiding error scenarios.

Gradio org

Can you please make this PR in the gradio repo?

https://github.com/gradio-app/gradio/tree/main/demo/fake_diffusion

freddyaboulton changed pull request status to closed
Gradio org

Thanks @abhishekkr !

@freddyaboulton @abidlabs thanks for the help

Sign up or log in to comment