Spaces:
Sleeping
Sleeping
Update api/views.py
Browse files- api/views.py +1 -1
api/views.py
CHANGED
@@ -146,7 +146,7 @@ def dataExtract(request, link):
|
|
146 |
},
|
147 |
]
|
148 |
|
149 |
-
model = genai.GenerativeModel(model_name='gemini-
|
150 |
chat = model.start_chat()
|
151 |
response = chat.send_message('PDF Data : \n\n'+OCRString)
|
152 |
fc = response.candidates[0].content.parts[0].function_call
|
|
|
146 |
},
|
147 |
]
|
148 |
|
149 |
+
model = genai.GenerativeModel(model_name='gemini-2.0-flash-lite', tools=entityTool, safety_settings=safety_settings)
|
150 |
chat = model.start_chat()
|
151 |
response = chat.send_message('PDF Data : \n\n'+OCRString)
|
152 |
fc = response.candidates[0].content.parts[0].function_call
|