Spaces:
Runtime error
Runtime error
Update llm.py
Browse files
llm.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import pytesseract
|
2 |
|
3 |
import google.generativeai as palm
|
4 |
-
api_key = '
|
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
|
|
|
1 |
import pytesseract
|
2 |
|
3 |
import google.generativeai as palm
|
4 |
+
api_key = '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' # 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
|