jake1393 / linebot-gemini-python

iThome Cloud Summit Lab demo LINE Bot with Gemini Pro

Home Page:https://www.evanlin.com/linebot-cloudsummit2024-workshop/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gemini Helper

Project Background

Screenshot

image

Features

Technologies Used

  • Python 3
  • FastAPI
  • LINE Messaging API
  • Google Generative AI
  • Aiohttp
  • PIL (Python Imaging Library)

Setup

  1. Clone the repository to your local machine.
  2. Set the following environment variables:
    • ChannelSecret: Your LINE channel secret.
    • ChannelAccessToken: Your LINE channel access token.
    • GEMINI_API_KEY: Your Gemini API key for AI processing.
  3. Install the required dependencies by running pip install -r requirements.txt.
  4. Start the FastAPI server with uvicorn main:app --reload.

Usage

To use the Receipt Helper, send a picture of your receipt to the LINE bot. The bot will process the image, extract the data, and provide a JSON representation of the receipt. For text-based commands or queries, simply send the command or query as a message to the bot.

Commands

  • !清空: Clears all the scanned receipt history for the user.

Contributing

If you'd like to contribute to this project, please feel free to submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

iThome Cloud Summit Lab demo LINE Bot with Gemini Pro

https://www.evanlin.com/linebot-cloudsummit2024-workshop/


Languages

Language:Python 91.8%Language:Dockerfile 6.7%Language:Procfile 1.5%