Skip to content

[Chapter 06] Add “Deploy on Streamlit Community Cloud” section #641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vaifai opened this issue May 8, 2025 · 2 comments
Open

[Chapter 06] Add “Deploy on Streamlit Community Cloud” section #641

vaifai opened this issue May 8, 2025 · 2 comments

Comments

@vaifai
Copy link

vaifai commented May 8, 2025

Proposal

I’d like to add a new section at the end of Chapter 06, “Deploy on Streamlit Community Cloud,” which walks readers through:

  1. Uploading their trained model to Hugging Face Model Hub
  2. Creating a minimal Streamlit app that loads the model from Hugging Face
  3. Deploying the app on Streamlit Community Cloud
  4. Tips on sharing the public URL as a portfolio/demo

Motivation

  • Many learners finish training and evaluation but don’t know how to turn models into live demos.
  • Streamlit Community Cloud offers free hosting and a simple workflow.
  • This addition will help users showcase their models in portfolios and accelerate learning by seeing models in action.

Proposed changes

  • Add a new subsection under ch06_deploying_models.md (or equivalent)
  • Include code snippets for:
    • Authenticating to Hugging Face
    • Pushing a model with huggingface_hub
    • Building a basic streamlit_app.py
    • Deploying via Streamlit’s GitHub integration
  • Screenshots of the Hugging Face and Streamlit UI (optional)

Additional context

I can draft a full markdown write-up and example repo if the idea is approved. Let me know if there are any preferences on formatting or placement!

For instance, Here is my streamlit app after reading through the chapters in the book : Spam Detector Streamlit App

@vaifai
Copy link
Author

vaifai commented May 8, 2025

Hi @rasbt , Thank you for writing such an excellent guide—I’ve learned so much about LLMs from your book. I had an idea to add a “Deploy on Streamlit Community Cloud” section to Chapter 06 so beginners can easily showcase their models, and I’d be honored to contribute a draft if you think it would be useful. Please let me know your thoughts!

@d-kleine
Copy link
Contributor

Hi @vaifai ,

Thank you for bringing up this exciting idea of adding a new section for deploying a Streamlit app on the cloud!👍🏻 Unfortunately, @rasbt is currently recovering from an injury, he will respond to your proposal as soon as he's feeling better.🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants