Git Product home page Git Product logo

django-dalle-linebot-vercel's Introduction

Django-DALLE-linebot-Vercel

一個使用Django框架和DALLE,創造linebot的專案,快速建置於平台Vercel。

1. 本專案參考了以下前輩和官方的方案改成製作,只針對剛學習Python或Django的朋友來佈置linebot在Vercel上。Vercel可取代取消免費方案的Heroku,來測試Side Project。

https://github.com/howarder3/GPT-Linebot-python-flask-on-vercel

https://github.com/vercel/examples/tree/main/python/django

2. 本以為只要把Flask的部分改為Django部分即可,但花了兩天,遇到了許多坑。主要就是因為使用Django會超過Vercel Function的50MB限制,嘗試了許多版本終於成功。

3. 主要就是裝了openapi的依賴後容量會大增。故在這版本我們只使用Django 2.0版本減少容量。我試過Django 3.2以上版本會Build失敗。若沒有其他特別需求,建議使用Django 2.0版本即可。也歡迎測試其他版本。

4. openai的依賴必須使用0.27.0以上版本。


django-dalle-linebot-vercel's People

Contributors

pyfbsdk59 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.