# Programmatically create streamlit space

**URL:** <https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848>\
**Category:** Spaces\
**Created:** [June 3, 2025, 1:00pm UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848 "2025-06-03T13:00:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![praneeth232](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@praneeth232](https://discuss.huggingface.co/u/praneeth232)\
**Post date:** [June 3, 2025, 1:00pm UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/1 "2025-06-03T13:00:06Z")

</div>

Hello,

After the recent update made by the hugging face on the space creation, i can’t able to create streamlit space using python code programmatically.

Before update, i used to create a repo space using the below code

```auto
create_repo("RentalPricePredictionBackend", 
        repo_type="space",  
        space_sdk="streamlit",  
        private=False 
    )

```

But now this code is not working, and there is no documentation or any article on this update made by hugging face - pls help me how to create a streamlit space on hf using programmatically with python

Thanks in advance

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 4, 2025, 1:10am UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/2 "2025-06-04T01:10:04Z")

</div>

I’ve seen reports from other sources that streamlit-related operations on Hugging Face are malfunctioning. I just searched and it doesn’t seem to have been discontinued. So it must be a bug… @meganariley @Wauplin @pierric

> **[Spaces Configuration Reference](https://huggingface.co/docs/hub/en/spaces-config-reference)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **`sdk`** : _string_  
> Can be either `gradio`, `streamlit`, `docker`, or `static`.

---

<div class="post-metadata">

**Author:** ![praneeth232](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@praneeth232](https://discuss.huggingface.co/u/praneeth232)\
**Post date:** [June 4, 2025, 6:31am UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/3 "2025-06-04T06:31:34Z")

</div>

this is what i’m getting when executing the code above i have provided

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/f/5/f5f7ea72b1a5616e64de559552802b07589e217c.png)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 4, 2025, 6:54am UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/4 "2025-06-04T06:54:35Z")

</div>

If we’re just using Streamlit, we could probably use Docker Space, so maybe they’ve integrated it? Unclear.

> **[Streamlit Docker Template - a Hugging Face Space by SpacesExamples](https://huggingface.co/spaces/SpacesExamples/streamlit-docker-example)**
>
> This web app allows you to input text and generate various outputs, such as summaries or translations, based on your input. Just provide your text, and the app will process it and present the results.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 10, 2025, 12:09pm UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/5 "2025-07-10T12:09:03Z")

</div>

The Streamlit template seems to be integrated under Docker.

> [@Streamlit interface](https://discuss.huggingface.co/t/streamlit-interface/156175/6):
>
> Seems it was spec. change.sweat_smile hysts Not a bug. It’s moved under Docker a while back. Looks like the docs need an update, though. Thanks.

---

<div class="post-metadata">

**Author:** ![praneeth232](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@praneeth232](https://discuss.huggingface.co/u/praneeth232)\
**Post date:** [July 10, 2025, 12:53pm UTC](https://discuss.huggingface.co/t/programmatically-create-streamlit-space/157848/6 "2025-07-10T12:53:37Z")

</div>

I know that it was integrated under docker, but I want a way to create the docker streamlit space programmatically
