Spaces:
Runtime error
Runtime error
ChandraP12330
commited on
Commit
•
9ce3e9a
1
Parent(s):
99c25ce
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ if image_url:
|
|
94 |
initial_caption= caption[0]['generated_text']
|
95 |
##gemini-1.0-pro-latest
|
96 |
##LLM
|
97 |
-
llm = ChatGoogleGenerativeAI(model="gemini-1.0-pro
|
98 |
safety_settings={
|
99 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
|
100 |
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
|
|
|
94 |
initial_caption= caption[0]['generated_text']
|
95 |
##gemini-1.0-pro-latest
|
96 |
##LLM
|
97 |
+
llm = ChatGoogleGenerativeAI(model="gemini-1.0-pro", google_api_key=GOOGLE_API_KEY, temperature=0.2, top_p=1, top_k=1,
|
98 |
safety_settings={
|
99 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
|
100 |
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
|