Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.99 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.99 KB

MarketingWriter

MarketingWriter is an intelligent marketing copy generation application powered by GitHub Models, Azure Container App, Streamlit and Generated by GitHub Copilot.

You can access the live application here.

Features

  • Generate complete marketing copy from user input ideas, bullet points, or product specifications.
  • Support for selecting various product values and emotional values.
  • Support for multiple language outputs, including English, Chinese, Japanese, and Korean.
  • Generate copy based on user-specified age range and word count.
  • Real-time display of generated copy.

Implementation Details

Tech Stack

  • GitHub Models with Azure OpenAI: Used to generate content using large language model.
  • Streamlit: Used to build the user interface.
  • Github Copilot: generate app code and solve problem
  • Azure Developer CLI: one-click journey for deployment

Environment Variables

The application requires the following environment variables:

  • GITHUB_TOKEN: GitHub token used to access the Azure OpenAI service.

Step by Step Deployment

  1. Create a folder for marketingwriter

    mkdir marketingwriter
    cd marketingwriter
  2. Use azd init this template:

    azd init --template https://github.com/xuhaoruins/marketingwriter
  3. update .env with your GitHub Token. You can create a new fine-grained PAT via the Developer Settings section in your account settings.

    echo "GITHUB_TOKEN=your_github_token_here" > src/.env
  4. Start the app:

    azd up
  5. If missing environment variables setting, you can update the environment variables using the Azure CLI after deployment:

    az login
    
    az containerapp update --name <your-app-name> --resource-group <your-resource-group> --set-env-vars GITHUB_TOKEN=your_github_token_here