how do dupe this space?

#181
by Toaster496 - opened

what is DOTENV_LOCAL? and how do i get it

Toaster496 changed discussion title from how do dupe this space to how do dupe this space?
Hugging Chat org

It's a file with env variables you don't want to expose (.env.local) So basically a duplicate of .env

Sm1 tell me in basic words/Vid?

i Just wanta dupe it on hugging face not onother VM (dont wanta pay)
https://huggingface.co/spaces/DaFujaTyping/hf-Chat-ui
https://huggingface.co/spaces/coyotte508/chat-ui

Hugging Chat org

@Toaster496 In order to duplicate a space first you will need a .env secret with your own MONGODB_URL and HF_ACCESS_TOKEN. As a template you can copy the one from github.

Now you need to fill in your two variables:

  • HF_ACCESS_TOKEN: You can get that one from your profile.
  • MONGODB_URL : You will need to spin up your own MongoDB instance. You could try using the free tier from MongoDB Atlas, it should be enough for your needs.

Now fill those variables in the template from earlier. Now you're ready to duplicate the space, once you do so, paste the content of your modified .env inside of DOTENV_LOCAL and that should be it!

THANK YOU SOOO MUCH

Toaster496 changed discussion status to closed

wait still dont get it(i have mongodb but no clue how to get url thingi)

Toaster496 changed discussion status to open

Sign up or log in to comment