Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,4 +27,16 @@ res = model.chat(tokenizer, image_file, ocr_type='ocr')
|
|
27 |
# render the formatted OCR results:
|
28 |
# res = model.chat(tokenizer, image_file, ocr_type='format', render=True, save_render_file = './demo.html')
|
29 |
|
30 |
-
print(res)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
# render the formatted OCR results:
|
28 |
# res = model.chat(tokenizer, image_file, ocr_type='format', render=True, save_render_file = './demo.html')
|
29 |
|
30 |
+
print(res)
|
31 |
+
|
32 |
+
#import google.generativeai as genai
|
33 |
+
#import os
|
34 |
+
|
35 |
+
#genai.configure(api_key=os.environ["AIzaSyB5WiEJf_yLMD1dMQf305EAbaPTzF_QD-I"])
|
36 |
+
|
37 |
+
#model = genai.GenerativeModel('gemini-1.5-flash')
|
38 |
+
#response = model.generate_content(
|
39 |
+
# text_input="the color of the car is ?",
|
40 |
+
# image_input="car.jpg"
|
41 |
+
#)
|
42 |
+
#print(response.text)
|