Eps 3 - Advanced ChatGPT Application

icon picker
Sec 2 - Quickstart Streamlit Cloud

Quickstart

This is a concise set of steps to create your Streamlit Community Cloud account, deploy a sample app, and start editing it with GitHub Codespaces. For other options and complete explanations, start with .
You will be signing in to your Google and GitHub accounts during this process. If you do not already have these accounts, you can create them before you begin. If you do not want to use a Google account, you can .

Sign up for Streamlit Community Cloud

Click "Continue with Google".
image.png
Enter your Google credentials and follow Google's authentication prompts.
After authenticating with Google, click "Connect GitHub account".
image.png
Enter your GitHub credentials and follow GitHub's authentication prompts.
Click "Authorize streamlit".
image.png
To finish, fill in your information and click "Continue" at the bottom of the screen.
image.png
You will be taken to your Streamlit workspace. If you see a warning icon (warning) next to "Settings" in the upper-right corner, this will be addressed in the next steps.
image.png

Create a new app with GitHub Codespaces

Click the down arrow to expand the options under "New App".
image.png
Click "Create new app with GitHub Codespaces".
image.png
You will be prompted that "Streamlit is requesting additional permissions". Click "Authorize streamlit".
image.png
The repository will be forked to your GitHub account. Fill in a repository name and click "Create!"
image.png
Click "Create new codespace" to confirm the creation of a codespace on your GitHub account. Read more about the learn about monthly limits for free use and paid plans.
image.png
Wait for GitHub to set up your codespace.
image.png
GitHub will automatically execute the commands to launch your Streamlit app within your codespace. Your app will be visible in a "Simple Browser" on the right. This may take a minute to complete from when your codespace first appears on screen.
image.png

Edit your app in GitHub Codespaces

Go to the app's main file (Hello.py) and add some text to the title in st.write(). Try typing ":balloon:" at the beginning.
image.png
Files are automatically saved in your codespace with each edit. Click "Always rerun" in the upper-right corner of your app to automatically rerun with each edit.
image.png
See your edits and keep going!
image.png

Stop or delete your codespace

When you are done, remember to stop your codespace on GitHub to avoid any undesired use of your capacity.
Go to . At the bottom of the page, all your codespaces are listed. Click the overflow menu icon (more_horiz) for your codespace.
image.png
Click "Stop codespace" if you'd like to return to your work later. Otherwise, click "Delete."
image.png
image.png
Congratulations! You just deployed an app to Streamlit Community Cloud. 🎉 Head back to your workspace at and .
image.png


Reference:
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.