Spaces:
Running
Running
Update app.py for slider to only have int values so range doesn't fail
#6
by
abhishekkr
- opened
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.
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
Thanks @abhishekkr !
@freddyaboulton @abidlabs thanks for the help