# Gradio additional inputs not visible when deployed on Hugging Face Spaces

**URL:** <https://discuss.huggingface.co/t/gradio-additional-inputs-not-visible-when-deployed-on-hugging-face-spaces/56687>\
**Category:** Spaces\
**Created:** [September 28, 2023, 9:33am UTC](https://discuss.huggingface.co/t/gradio-additional-inputs-not-visible-when-deployed-on-hugging-face-spaces/56687 "2023-09-28T09:33:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yachty66](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@yachty66](https://discuss.huggingface.co/u/yachty66)\
**Post date:** [September 28, 2023, 9:33am UTC](https://discuss.huggingface.co/t/gradio-additional-inputs-not-visible-when-deployed-on-hugging-face-spaces/56687/1 "2023-09-28T09:33:46Z")

</div>

I am trying to deploy a Gradio app on Hugging Face Spaces. The app includes a chat interface with an additional input, specifically a slider. Here’s the relevant code:

```python
with gr.Blocks() as demo:           
    slider = gr.inputs.Slider(minimum=100, maximum=1000, default=256, label="Max New Tokens")
    chat = gr.ChatInterface(random_response, additional_inputs=[slider])

demo.launch()

```

When I run the app locally, I can see the additional inputs. However, when I deploy the app to Hugging Face Spaces, the additional inputs are not visible.

Is this a known limitation of Hugging Face Spaces, or am I missing something in my deployment process? Any guidance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![yachty66](https://avatars.discourse-cdn.com/v4/letter/y/ac8455/32.png) [@yachty66](https://discuss.huggingface.co/u/yachty66)\
**Post date:** [September 28, 2023, 9:42am UTC](https://discuss.huggingface.co/t/gradio-additional-inputs-not-visible-when-deployed-on-hugging-face-spaces/56687/2 "2023-09-28T09:42:36Z")

</div>

got it. problem was i used `gr.inputs.Slider` instead of `gr.components.Slider`. the former is deprecated.
