```py
>>> api.duplicate_space("multimodalart/dreambooth-training")
```  
**2. Upload your code using your preferred solution.**  
Here is an example to upload the local folder `src/` from your machine to your Space:  
```py
>>> api.upload_folder(repo_id=repo_id, repo_type="space", folder_path="src/")
```  
At this step, your app should already be running on the Hub for free !
However, you might want to configure it further with secrets and upgraded hardware.  
**3. Configure secrets and variables**