Recode-Hive / Scrape-ML

For new data generation Semi-supervised-sequence-learning-Project we have writtern a python script to fetch📊, data from the 💻, imdb website 🌐 and converted into txt files.
https://scrape-ml.streamlit.app/
MIT License
80 stars 117 forks source link

Bug : Script execution error 1_Movie_Analysis.py #200

Open srilekha279 opened 1 week ago

srilekha279 commented 1 week ago

When I tried to open the link of the webpage https://scrape-ml.streamlit.app/Movie_Analysis, I got the following error :

File "/mount/src/scrape-ml/Web_app/pages/1_Movie_Analysis.py", line 93
              try:
             ^
IndentationError: unexpected indent

Please assign me this issue to correct the error.

github-actions[bot] commented 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.

srilekha279 commented 1 week ago

@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?