Skip to content

Kishen35/FlyThru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FlyThru: Automated Drive-Thru Ordering System

Vision Enhancement Preview

FlyThru.Vision.Trial.Run.mp4

Learn More: Check out the Slides on Canva or watch the Pitch Video below (note that the interface is slightly outdated)

FYP.FlyThru.Video.mp4

FlyThru Poster

Getting Started

1. Installing necessary packages

pip install -r requirements.txt

2. Resource Creation

FlyThru relies on three main resources which are Azure Speech Service, Azure OpenAI, and Azure CosmosDB.

Azure OpenAI needs to have a gpt model (existing version runs on gpt-35-turbo-16k for more tokens) deployed under the name flythru-ai.

Azure Cosmos DB needs to have three containers [client, item, order] with clientEmail as the partition key and id as the primary key for each.

Once these resources have been created, the secrets are to be stored in a config.py file.

# config.py
import os

settings = {
    'host': os.environ.get('ACCOUNT_HOST', '<YOUR_COSMOSDB_ENDPOINT>'),
    'master_key': os.environ.get('ACCOUNT_KEY', '<YOUR_COSMOSDB_KEY>'),
    'database_id': os.environ.get('COSMOS_DATABASE', 'flythru'), # suggested to name database as flythru
}

openAI = {
    'endpoint': os.environ.get('OPENAI_LINK', '<YOUR_OPENAI_ENDPOINT>'),
    'api_key': os.environ.get('OPENAI_API', '<YOUR_OPENAI_KEY>'),
    'api_type': os.environ.get('GPT_PROVIDER', 'azure') # can be openai if using OpenAI's API directly
}

speech = {
    'subscription': os.environ.get('SPEECH_SUBSCRIPTION', '<YOUR_SPEECH_SUBSCRIPTION_KEY>'),
    'region': os.environ.get('SPEECH_REGION', '<YOUR_SPEECH_REGION>'),
}

3. Running system

  1. Run main.py
  2. Visit localhost
  3. Login and Register for an account
  4. Import menu items by adding the Grab Merchant ID of the restaurant
  5. Click on "Start Order" to begin taking an order
  6. Speak into the microphone when the action bar turns blue
  7. Once order completed, click on "Stop Order"

About

An automated drive-thru ordering system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published