Open srilekha279 opened 1 week ago
Thank you for raising a issue, Hope you enjoing the open source. we try to reply or assign as soon possibe. Connect with mentor.
@sanjay-kv Even after fixing the indentation error, I found these errors:
One of them is : Using return statement outside the function. Temporarily, I commented out these lines as shown(lines 93 to 97 in the mentioned file) :
try:
pass
# return pd.read_csv(uploaded_file, encoding='latin1')
except UnicodeDecodeError:
st.error("File encoding not supported. Please upload a CSV file with UTF-8 or Latin1 encoding.")
# return None
After running the code again, I got this error :
ImportError: cannot import name 'analyze_reviews' from 'utils'
File "C:\Users\DELL\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script
exec(code, module.__dict__)
File "E:\Git\recode-hive-scrape-ml\Scrape-ML\Web_app\pages\1_Movie_Analysis.py", line 3, in <module>
from utils import analyze_reviews, recommend_movies
It shows that analyze_reviews.py and recommend_movies.py files are not present in utils directory.
Please tell me what should I do now. Will you accept my pull request after resolving indentation error as we should choose only a small topic to create an issue?
When I tried to open the link of the webpage https://scrape-ml.streamlit.app/Movie_Analysis, I got the following error :
Please assign me this issue to correct the error.