{"id":21445276,"url":"https://github.com/bunu23/ml-chatbot","last_synced_at":"2026-05-13T12:37:42.226Z","repository":{"id":241995338,"uuid":"805541679","full_name":"bunu23/ML-Chatbot","owner":"bunu23","description":"Image Upload and Visual Question Answering ","archived":false,"fork":false,"pushed_at":"2024-05-28T00:22:46.000Z","size":731,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T11:15:52.910Z","etag":null,"topics":["huggingface-transformers","python","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bunu23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-24T20:07:20.000Z","updated_at":"2025-01-02T22:21:25.000Z","dependencies_parsed_at":"2024-05-31T03:38:24.805Z","dependency_job_id":"68fcdab1-d747-41b2-a998-c6bdf856e293","html_url":"https://github.com/bunu23/ML-Chatbot","commit_stats":null,"previous_names":["bunu23/ml-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunu23%2FML-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunu23%2FML-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunu23%2FML-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunu23%2FML-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bunu23","download_url":"https://codeload.github.com/bunu23/ML-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955799,"owners_count":20374373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["huggingface-transformers","python","streamlit"],"created_at":"2024-11-23T02:25:24.888Z","updated_at":"2025-10-27T15:08:46.596Z","avatar_url":"https://github.com/bunu23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chatbot Application\n\nThis application allows you to upload an image and ask questions about it. The chatbot uses Visual Question Answering VQA models to provide relevant answers.\n\n## Features\n\n- **Model Selection**: Choose between different VQA models (currently supports BLIP).\n- **Image Upload**: Upload an image in JPG, PNG, or JPEG format.\n- **Interactive Chat**: Ask questions about the uploaded image and receive responses.\n\n## How It Works\n\n1. **Upload an Image**: Use the sidebar to upload an image. The image will be displayed in the sidebar.\n2. **Ask Questions**: Type your question in the chat input box at the bottom of the page.\n3. **Get Responses**: The selected VQA model processes the question and image to generate an answer, which is displayed in the chat.\n\n## Steps to Run the Chatbot Application\n\n### Step 1: Create a New Python Virtual Environment\n\nFollow these instructions to create a virtual environment for a specified version of Python.\n\n#### Prerequisites\n\n- Ensure Python is installed on your system. You can download it from [python.org](https://www.python.org/downloads/).\n- Verify that `pip` is installed by running `pip --version` in your terminal or command prompt.\n\n#### Step 1.1: Install `virtualenv`\n\nIf not already installed, you need to install `virtualenv` using pip:\n\n```bash\npip install virtualenv\n```\n\n#### Step 1.2: Create the Virtual Environment\n\nCreate a virtual environment specifying the path to the Python interpreter for the version you wish to use. Replace `path/to/python` with the actual path and `myenv` with your desired environment name:\n\n```bash\nvirtualenv -p /path/to/python myenv\n```\n\n- **Example for Windows**: If Python 3.8 is installed at `C:\\Python38\\python.exe`:\n\n  ```bash\n  virtualenv -p C:\\Python38\\python.exe myenv\n  ```\n\n- **Example for macOS/Linux**: If Python 3.8 is installed and the executable is named `python3.8`:\n\n  ```bash\n  virtualenv -p python3.8 myenv\n  ```\n\n#### Step 1.3: Activate the Virtual Environment\n\nActivate the newly created virtual environment:\n\n- **On Windows**:\n\n  ```bash\n  myenv\\Scripts\\activate\n  ```\n\n- **On macOS/Linux**:\n\n  ```bash\n  source myenv/bin/activate\n  ```\n\n#### Step 1.4: Verify Python Version\n\nCheck the Python version to ensure the correct version is activated:\n\n```bash\npython --version\n```\n\n#### Step 1.5: Deactivate the Environment\n\nTo stop using the virtual environment and revert to the default Python settings:\n\n```bash\ndeactivate\n```\n\nThis completes the setup of a Python virtual environment with your specified version.\n\n### Step 2: Install Necessary Packages\n\nActivate the virtual environment and install the required packages using the following command:\n\n```bash\npip install -r requirements.txt\n```\n\n### Step 3: Run the Streamlit Application\n\nRun the application with the following commands:\n\n```bash\ncd chatbot\nstreamlit run app.py\n```\n\n### Step 4: Interact with the Application\n\n1. **Open the Application**: Once the Streamlit app is running, open your browser and navigate to the local server URL provided.\n2. **Upload an Image**: Use the sidebar to upload an image file. The uploaded image will be displayed in the sidebar.\n3. **Ask a Question**: Type your question in the chat input box at the bottom of the page.\n4. **Receive an Answer**: The chatbot will process your question and the uploaded image, and provide an answer in the chat interface.\n\n## Notes\n\n- The application downloads the Hugging Face models and caches them inside the `models` folder when you run the application for the first time. Therefore, the first run will be slower. In subsequent runs, it will load the downloaded models stored locally.\n- If you encounter errors related to the Hugging Face transformers library, you can install the latest version directly using the following command:\n\n  ```bash\n  pip install git+https://github.com/huggingface/transformers\n  ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunu23%2Fml-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunu23%2Fml-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunu23%2Fml-chatbot/lists"}