Skip to content

payton-chou-ms/ChatGPTDemo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPTDemo

This is a Demo for application building with ChatGPT/OpenAI API via Python/Flask, deployment to Azure App Service. Steps:

  1. Build

Open your IDE such as VS Code for example. In a terminal,

git clone https://github.com/ZEGUK/ChatGPTDemo.git
💡 index.html for front render template.

Modify with your own OpenAI API Key and save file.

Run the application in localhost to validating that the web app is ready.

cd chatGPTAppdemo

python3 -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt

flask run
  1. Deploy
  • First, create App Service on Azure.

  • Then, deploy our app to Azure App Service. Here, we choose Local Git. 在本地存储库中,配置一个指向 Azure 的、以将代码推送到 Azure 的 Git remote 命令可以使用 Azure 门户或 Azure CLI 检索用于配置的远程存储库 URL 和 Git 凭据。

💡 Username: $chatGPTAppdemo

git-deployment-url: https://chatgptappdemo.scm.azurewebsites.net:443/chatGPTAppdemo.git

git remote add azure <git-deployment-url>

本地repo commit:

git add app.py
git commit -m 'message'
git push azure
# Or
git push azure main: master
  • When complete the deployment, you can find URL of the App Service

https://chatgptappdemo.azurewebsites.net.

Now, you can browse your Chatbot web application.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.9%
  • Python 24.1%