Coder Social home page Coder Social logo

chuangellow / youtube-search-langchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from louis70109/youtube-search-langchain

0.0 0.0 0.0 14 KB

Search youtube video by API query string

License: MIT License

Shell 20.67% Python 71.19% Dockerfile 8.14%

youtube-search-langchain's Introduction

LangChain Example for Youtube Search

使用 LangChain 搭配 OpenAI,當呼叫 API 時提供問題,則會回傳一個影片以及敘述給用戶

環境變數

你需要設置以下環境變數:

  • API_ENV: 應用程式的運行環境,可以是 'production' 或 'develop',預設 develop。
  • LOG: 紀錄的等級,例如 'WARNING'、'INFO'、'DEBUG' 等。
  • OPENAI_API_KEY: OpenAI 的 API Key。
  • PORT: 預設 8080

使用方法

git clone https://github.com/louis70109/calendar-linebot
cd calendar-linebot/
pip install -r requirements.txt
# python3 -m venv venv; source venv/bin/activate # 如果有的話
python main.py

Google Cloud Platform 佈署

Run on Google Cloud

Clone 此專案

git clone https://github.com/louis70109/calendar-linebot
cd calendar-linebot/

gcloud 基礎設定

  • gcloud init:初始化 gcloud CLI,該指令會提示登錄 Google 帳戶,並選擇您要使用的 GCP 項目。
  • gcloud config set project PROJECT_ID:設定 GCP Project ID,以便 gcloud CLI 與該項目交互使用。
  • gcloud auth login:登錄 Google 帳戶。

透過 gcloud 指令佈署

gcloud run deploy calendar-linebot-1 --source .

佈署參考: 【GCP】將 FastAPI 佈署上 Cloud Run

參與貢獻

如果你有任何問題或建議,歡迎開 issue 或 pull request。

LISENSE

MIT

youtube-search-langchain's People

Contributors

louis70109 avatar chenbingwei1201 avatar chuangellow 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.