Skip to content

mongodb-developer/stream-airbnb-ai-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Airbnb Listings Viewer

This Streamlit application connects to a MongoDB database containing Airbnb rental data and provides a user-friendly interface to view, filter, and analyze the listings and their reviews. The app also includes functionality to add new reviews and generate AI-powered review summaries.

Features

  • View and filter Airbnb listings
  • Display detailed information about selected listings
  • Add new reviews to listings
  • Generate AI summaries for reviews

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/mongodb-developer/stream-airbnb-ai-reviews.git
    cd stream-airbnb-ai-reviews
  2. Install the required packages:

    pip install -r requirements.txt
  3. Set up environment variables:

    • MONGODB_ATLAS_URI: Your MongoDB Atlas connection string
    • OPENAI_API_KEY: Your OpenAI API key

    You can create a .env file in the root directory and add the following:

    MONGODB_ATLAS_URI=your_mongodb_atlas_uri
    OPENAI_API_KEY=your_openai_api_key
  4. Ingest data using Hugging Face free token from airbnb hugging face data set:

huggingface-cli login 
python ingest.py
  1. Run the Streamlit app:
    streamlit run app.py

You should be able to now operate the UI and add reviews and generate AI based reviews.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages