dinhquangson
commited on
Commit
•
1109b63
1
Parent(s):
721dca6
Update llm.py
Browse files
llm.py
CHANGED
@@ -7,7 +7,7 @@ models = [m for m in palm.list_models() if 'generateText' in m.supported_generat
|
|
7 |
model = models[0].name
|
8 |
|
9 |
def llm(img):
|
10 |
-
text = pytesseract.image_to_string(img, lang='
|
11 |
# generate text
|
12 |
prompt = "take this peace of information and give all the information in point wise better format also give some recomendation related to them, if you don't get any nutrition content simply reply 'I don't seem have any knowledge of the perticular Nutrition Content' " + text
|
13 |
# print(prompt)
|
|
|
7 |
model = models[0].name
|
8 |
|
9 |
def llm(img):
|
10 |
+
text = pytesseract.image_to_string(img, lang='vie')
|
11 |
# generate text
|
12 |
prompt = "take this peace of information and give all the information in point wise better format also give some recomendation related to them, if you don't get any nutrition content simply reply 'I don't seem have any knowledge of the perticular Nutrition Content' " + text
|
13 |
# print(prompt)
|