smishr-18 commited on
Commit
9163f78
·
verified ·
1 Parent(s): 6420234

Update llm.py

Browse files
Files changed (1) hide show
  1. llm.py +0 -2
llm.py CHANGED
@@ -1,11 +1,9 @@
1
  import pytesseract
2
-
3
  import google.generativeai as palm
4
  api_key = 'AIzaSyB0ZZXzrEz5Q8cRCBPkFJmo6A2tEB3dy8s' # put your API key here
5
  palm.configure(api_key=api_key)
6
  models = [m for m in palm.list_models() if 'generateText' in m.supported_generation_methods]
7
  model = models[0].name
8
-
9
  def llm(img):
10
  text = pytesseract.image_to_string(img, lang='eng')
11
  # generate text
 
1
  import pytesseract
 
2
  import google.generativeai as palm
3
  api_key = 'AIzaSyB0ZZXzrEz5Q8cRCBPkFJmo6A2tEB3dy8s' # put your API key here
4
  palm.configure(api_key=api_key)
5
  models = [m for m in palm.list_models() if 'generateText' in m.supported_generation_methods]
6
  model = models[0].name
 
7
  def llm(img):
8
  text = pytesseract.image_to_string(img, lang='eng')
9
  # generate text