mishl-dev / Discord-AI-Chatbot

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API
GNU Affero General Public License v3.0
1.32k stars 417 forks source link

OCR for images #90

Closed Scopinou closed 1 year ago

Scopinou commented 1 year ago

Hello,

When I ask the bot to solve a OCR for images, I got that answer : image

Here is the error on the console : image

I have already set hugging face api key.

mishl-dev commented 1 year ago

Hello,

When I ask the bot to solve a OCR for images, I got that answer : image

Here is the error on the console : image

I have already set hugging face api key.

try again in like 5 seconds

Scopinou commented 1 year ago

Sometimes, it seems to work, sometimes not. image

[Exception('API request failed with status code 503: {"error":"Model microsoft/trocr-base-printed is currently loading","estimated_time":20.0}'), [{'generated_text': 'a sign that says "don\'t miss the holidays" '}]]

mishl-dev commented 1 year ago

Sometimes, it seems to work, sometimes not. image

[Exception('API request failed with status code 503: {"error":"Model microsoft/trocr-base-printed is currently loading","estimated_time":20.0}'), [{'generated_text': 'a sign that says "don\'t miss the holidays" '}]]

Hmm i should try to make the model stay awake by sending GET request every 1 minutes with timeout of 30