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
pip install -r requirements.txtFlyThru 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>'),
}- Run
main.py - Visit localhost
- Login and Register for an account
- Import menu items by adding the Grab Merchant ID of the restaurant
- Click on "Start Order" to begin taking an order
- Speak into the microphone when the action bar turns blue
- Once order completed, click on "Stop Order"
