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?
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
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
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.
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
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
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
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!
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.
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.
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