Nice video. Looking at your welcome page I can see you have a login/sign up form which means you have connected your webapp to a database to store details. Could you do a video on that?
Nice tutorial, but it is showing me this error -Sep 29 10:04:46 PM Traceback (most recent call last): Sep 29 10:04:46 PM File "", line 1, in Sep 29 10:04:46 PM File "/usr/local/lib/python3.7/platform.py", line 116, in Sep 29 10:04:46 PM import sys, os, re, subprocess Sep 29 10:04:46 PM File "/opt/render/project/src/re.py", line 3, in Sep 29 10:04:46 PM import streamlit as st Sep 29 10:04:46 PM ModuleNotFoundError: No module named 'streamlit' Can you please do something about it 😕
Thanks, try adding the current version of streamlit in requirements.txt. Like streamlit==1.27.0 , do this for all packages if they also get module not found error.
Thanks, I just saw Supabase, it seems good, I will use Supabase database for my next Project and will definitely make a video on that. Thanks for the suggestion.
It worked for me in Streamlit community cloud , but not worked in render. In render I always getting error, like it is saying " Failed deploy" . Could anyone solve this error? Which I got
@@a_lone_wolf_3864 there must be something regarding cause of error, check inside logs, paste the screenshot in discord channel, will be easy for debugging, thanks
ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects [end of output] why
I tried to upload my data.csv and it give me the error of file too large more than 100 Mo if i drag it as a zip would it work it exist in the github but the app is showing erreur
Hey, If you are saying that the zip file of csv is on github, then inside your code instead of directly loading csv, you should extract it from zip first and then read the csv, using: ****** import pandas as pd import zipfile import os # Path to the downloaded zip file zip_file_path = "path/to/your/downloaded/zip/file.zip" # Path where you want to extract the zip file extracted_folder_path = "path/to/extracted/folder" # Extract the zip file with zipfile.ZipFile(zip_file_path, 'r') as zip_ref: zip_ref.extractall(extracted_folder_path) # List files in the extracted folder extracted_files = os.listdir(extracted_folder_path) # Assume there's only one CSV file in the extracted folder csv_file_name = [f for f in extracted_files if f.endswith('.csv')][0] # Path to the CSV file csv_file_path = os.path.join(extracted_folder_path, csv_file_name) # Read the CSV file using Pandas df = pd.read_csv(csv_file_path) ****** ** If that also doesn't work, you can try uploading the csv in multiple parts and then read them one by one like in df1,df2,df3 and then concat them into 1 df. ** Also, while pushing the code from terminal using git command, you can push a slight large file compared to uploading on github website. ** If you want another approach, then you can upload the csv somewhere else on the web, maybe on google drive, and then read the csv using its url, like this: csv_url = 'raw.githubusercontent.com/username/repository/master/data.csv' # Read the CSV file directly from the URL df = pd.read_csv(csv_url) --- I hope this helps, ask me if you face any other issues, thanks!
You can't directly upload a single file over 100mb on github. Try: - host the file externally like on google drive and put the link to it in repo. - or split file in separate smaller files < 100 mb. - or use github large files, it can be a bit complex, search for it online
This is coming because we haven't uploaded the json file, I would suggest you to use render and upload your secrets/files in the environment tab, like this: drive.google.com/file/d/1jLfTIQyS6tc6iAX6eO_J-ca_Ti5h2STm/view?usp=sharing . If you still get any errors there, then drop a message with error photo in our discord channel, thanks.
This error could be due to various reasons, I would suggest you to use Python version 3.10 if possible, try running the following command in terminal: 'pip install dlib' and maybe 'pip install --upgrade pip', use latest streamlit version. These should resolve the error, lemme know if none works, thanks
Streamlit cloud is free, there is no time limit I guess, but maybe there could be resource limit like 1Gb Ram. For learning, or for less users, it would be great. For other cases we have multiple options also like AWS ec2 instance, you can check them out. Thanks
Yeah, there are limitations like this with these kind of free services, but is should be okay for self projects/learning. For production based applications we should consider better platforms.
There is an option under advanced settings on render for environment variables, secret files, etc. you can pass your keys there, I will upload a video regarding this, but for now if you face any issues feel free to ask here or on our discord server. Thanks
Thanks for the video. Quick and to the point.
amazing best hosting tutorial i have seen, quick, easy to understand and no nonesense. Thank you ;>
Thanks ,.. it was very straight forward.. and moreover it worked perfectly. Thanks again!
Thankyou ! It was really easy to follow !!
Nice video. Looking at your welcome page I can see you have a login/sign up form which means you have connected your webapp to a database to store details. Could you do a video on that?
Thanks, yes I have already created videos for that, there is a complete streamlit playlist of this project on my channel.
Ok let me have a look
@@beginnerscodezone
if u dont want to connect to a database and just want to have login functions u can use google sheets
Thanks for sharing this. It helped me a lot.
Nice tutorial, but it is showing me this error -Sep 29 10:04:46 PM Traceback (most recent call last):
Sep 29 10:04:46 PM File "", line 1, in
Sep 29 10:04:46 PM File "/usr/local/lib/python3.7/platform.py", line 116, in
Sep 29 10:04:46 PM import sys, os, re, subprocess
Sep 29 10:04:46 PM File "/opt/render/project/src/re.py", line 3, in
Sep 29 10:04:46 PM import streamlit as st
Sep 29 10:04:46 PM ModuleNotFoundError: No module named 'streamlit' Can you please do something about it 😕
Thanks, try adding the current version of streamlit in requirements.txt. Like streamlit==1.27.0
, do this for all packages if they also get module not found error.
@@beginnerscodezone Thanks 😀
Thank you!
good work will you mak
e same code for supabse database
Thanks, I just saw Supabase, it seems good, I will use Supabase database for my next Project and will definitely make a video on that. Thanks for the suggestion.
It worked for me in Streamlit community cloud , but not worked in render. In render I always getting error, like it is saying " Failed deploy" . Could anyone solve this error? Which I got
@@a_lone_wolf_3864 there must be something regarding cause of error, check inside logs, paste the screenshot in discord channel, will be easy for debugging, thanks
Clear explanation.....Thankyou 👏👏👏
WOW Well done ! no bias
Thanks 😊
Is it necessary to public repo? Or can we use private repo?
private repo also works
@@beginnerscodezone Thank you replying
Thank you so much, it has really helped me 😄
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]
why
Hey try to put Numpy with its latest version in requirements.txt , ex:
numpy = "1.26.4"
thanks!!
maam this is amazing
I tried to upload my data.csv and it give me the error of file too large more than 100 Mo if i drag it as a zip would it work it exist in the github but the app is showing erreur
Hey, If you are saying that the zip file of csv is on github, then inside your code instead of directly loading csv, you should extract it from zip first and then read the csv, using:
******
import pandas as pd
import zipfile
import os
# Path to the downloaded zip file
zip_file_path = "path/to/your/downloaded/zip/file.zip"
# Path where you want to extract the zip file
extracted_folder_path = "path/to/extracted/folder"
# Extract the zip file
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
zip_ref.extractall(extracted_folder_path)
# List files in the extracted folder
extracted_files = os.listdir(extracted_folder_path)
# Assume there's only one CSV file in the extracted folder
csv_file_name = [f for f in extracted_files if f.endswith('.csv')][0]
# Path to the CSV file
csv_file_path = os.path.join(extracted_folder_path, csv_file_name)
# Read the CSV file using Pandas
df = pd.read_csv(csv_file_path)
******
** If that also doesn't work, you can try uploading the csv in multiple parts and then read them one by one like in df1,df2,df3 and then concat them into 1 df.
** Also, while pushing the code from terminal using git command, you can push a slight large file compared to uploading on github website.
** If you want another approach, then you can upload the csv somewhere else on the web, maybe on google drive, and then read the csv using its url, like this:
csv_url = 'raw.githubusercontent.com/username/repository/master/data.csv'
# Read the CSV file directly from the URL
df = pd.read_csv(csv_url)
--- I hope this helps, ask me if you face any other issues, thanks!
Thank you (Y) so much
how to upload 180mb file to github
You can't directly upload a single file over 100mb on github.
Try:
- host the file externally like on google drive and put the link to it in repo.
- or split file in separate smaller files < 100 mb.
- or use github large files, it can be a bit complex, search for it online
ruclips.net/video/dpZQFTXSfjs/видео.htmlsi=IozY37G6yQuZ3at9
I am also getting the same error in streamlit at 11:00 how to tackle this
This is coming because we haven't uploaded the json file, I would suggest you to use render and upload your secrets/files in the environment tab, like this: drive.google.com/file/d/1jLfTIQyS6tc6iAX6eO_J-ca_Ti5h2STm/view?usp=sharing . If you still get any errors there, then drop a message with error photo in our discord channel, thanks.
I'm getting the error by using streamlit and render too.😢
dlib-19.24.99-cp312-cp312-win-amd64.whl is not a supported wheel on this platform
This error could be due to various reasons, I would suggest you to use Python version 3.10 if possible,
try running the following command in terminal: 'pip install dlib' and maybe 'pip install --upgrade pip', use latest streamlit version. These should resolve the error, lemme know if none works, thanks
@@beginnerscodezoneokay 👍 lemme give it a try
@@beginnerscodezone Hey sis👋 I'm still getting the same error 🥺 after following acc. to your instructions given
thank You so much ..........
Ma'am is stream lit cloud paid or free?? ... If its free how many day/ month??
Pls advice... Thx 🙏🙏🙏🙏
Streamlit cloud is free, there is no time limit I guess, but maybe there could be resource limit like 1Gb Ram. For learning, or for less users, it would be great.
For other cases we have multiple options also like AWS ec2 instance, you can check them out.
Thanks
Render has inactivity delay: 30 sec (after 15 minutes of inactivity)
Yeah, there are limitations like this with these kind of free services, but is should be okay for self projects/learning. For production based applications we should consider better platforms.
🤙🤙
can we deploy openai projects in render, is our api key safe, where to add secret environmental variables so that our api keys are safe?
There is an option under advanced settings on render for environment variables, secret files, etc. you can pass your keys there, I will upload a video regarding this, but for now if you face any issues feel free to ask here or on our discord server.
Thanks
@@beginnerscodezone got it, thank you