Certainly, here are the step-by-step instructions for setting up and running the application using a virtual environment for Python 3.9:
-
Setup Virtual Environment:
- Open the terminal.
- Install the virtual environment package if you haven't already:
conda create -p venv python=3.9 -y
. - Create a virtual environment:
virtualenv venv
. - Activate the virtual environment: conda activate venv/
-
Install Requirements:
- Install the requirements:
pip install -r requirements.txt
.
- Install the requirements:
-
Set Up the Jupyter Notebook:
- Open the Jupyter Notebook in your virtual environment.
- pip install ipykernel
- pip install jupyter notebook
-
Run Application.py: -python appl.py
-
Let's Deploy it at Render.com: -go to this website: https://dashboard.render.com/web -then click on new and choose web serivces -choose this :Build and deploy from a Git repository and click on next -then in settings :
-
So click on manual Deploy and select deploy with latest commit -and wait 2-3 mint after that your website will be published. -https://spam-classifier-d15y.onrender.com/
By following these steps, you can set up a virtual environment, install necessary requirements, and run the app.py
script in the Jupyter Notebook environment. This process helps ensure a clean and isolated development environment for your application.