Skip to content

savac/nougat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nougat-bot

This repo contains code to deploy Facebook's Nougat model as a Modal function. In addition, there is a Telegram bot that takes an image sent to the chat and passes it to the deployed model for OCR. The results are returned in the chat.

Installation

  1. Create a Telegram bot using the @BotFather
  2. Create a .env file based on .env.example and add the necessary token and ids. Telegram ids can be found out by sending a message to @getidsbot.
  3. Run or inspect the following script to deploy model in Modal and start Telegram bot.
./deploy.sh

Usage

Send photos of text on which to run the Nougat OCR to your Telegram bot.

Acknowledgments

Parts of the Telegram bot code were taken from the excellent chatgpt-telegram-bot.

About

Run Nougat OCR from Telegram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published