Giter Club home page Giter Club logo

ai-model-deployment's Introduction

AI-Model-Deployment

How to Deploy AI Apps to the Cloud with Flask & Azure

Steps:

  1. Set up a Microsoft Azure account if you don't already have one.

  2. Create a Resource Group in the Azure Portal. A resource group helps you organize and manage resources based on their lifecycle and their relationship to each other.

  3. Click the 'Create Resurces' button

  4. Search 'App Service'

  5. Select 'Web App' and press 'create'

  6. In the Azure Portal, fill out your new App Service details. Associate it with the LangChain-Experiments resource group. Set publish to Code, and select the correct Python version and your Region. Give it a global name, something like 'ai-docs-chatbot'. Finally, select an appropriate App Service Plan based on your needs. The free plan is fine for just getting started.

  7. Press 'review + create' and then 'create' again. Once you see the notification "deployment suceeded' you should 'go to the resource' 8.** Deploy via GitHub repo: **In the Azure Deployment Center, connect your GitHub repository to your App Service and then click 'save'. This will enable continuous integration and deployment, so your app will be automatically updated whenever you push changes to the specified branch. Make sure to select the correct branch.

  8. Create a startup.txt file Create a startup.txt file in the root of your project with the following content. This file will be used to configure Gunicorn as the application server for your Flask app when deployed to Azure.

  9. Update the Startup Command in Azure. In the Azure portal, navigate to your App Service, and then go to Configuration > General Settings. Under the "Startup command" field, enter 'startup.txt' and click "Save" to apply the changes. 11.** Update the Web App Configuration with Keys and Secrets**. In the Azure portal, navigate to your App Service, and then go to Enivornment Variables > App settings. Add the following keys and their respective values. Make sure to replace the placeholder values with your actual keys and secrets. Click "Save" to apply the changes.

    OPENAI_API_KEY: Your OpenAI API key SLACK_BOT_TOKEN: Your Slack bot token (starts with "xoxb-") SLACK_BOT_USER_ID: Your Slack bot user ID SLACK_SIGNING_SECRET: Your Slack signing secret

ai-model-deployment's People

Contributors

markbuckle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.