This is a simple dictionary chatbot application built with Streamlit. The chatbot fetches word definitions from the Oxford Dictionary API and displays them to the user.
project_directory/ │ ├── app.py # Main application code ├── requirements.txt # Required Python packages ├── templates/ │ └── index.html # HTML template for the UI └── static/ └── style.css # CSS for styling the UI
- Python 3.7 or higher
- Streamlit
- Requests
-
Clone the repository:
git clone https://github.com/yourusername/dictionary-chatbot.git cd dictionary-chatbot
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and go to:
http://localhost:8501
- Enter a word in the input field.
- Click Enter and wait for the definition to be displayed.
app.py
: Contains the main Streamlit application code.templates/index.html
: Contains the HTML structure of the application.static/style.css
: Contains the CSS for styling the application.
This project is licensed under the MIT License.