techasad commited on
Commit
f1cff78
1 Parent(s): e829c4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
 
2
  from transformers import pipeline
3
  from langchain import PromptTemplate, LLMChain
4
- from langchain.llms import GooglePalm
5
 
 
6
  import requests
7
  import os
8
  import streamlit as st
@@ -11,7 +11,7 @@ import streamlit as st
11
  os.environ["GOOGLE_API_KEY"] = "AIzaSyD29fEos3V6S2L-AGSQgNu03GqZEIgJads"
12
  os.environ ["HUGGINGFACEHUB_API_TOKEN"] = "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"
13
 
14
- llm = GooglePalm(temperature = 0.7)
15
 
16
 
17
  #image to text
 
1
 
2
  from transformers import pipeline
3
  from langchain import PromptTemplate, LLMChain
 
4
 
5
+ from langchain_community.chat_models import ChatGooglePalm
6
  import requests
7
  import os
8
  import streamlit as st
 
11
  os.environ["GOOGLE_API_KEY"] = "AIzaSyD29fEos3V6S2L-AGSQgNu03GqZEIgJads"
12
  os.environ ["HUGGINGFACEHUB_API_TOKEN"] = "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"
13
 
14
+ llm = ChatGooglePalm(temperature = 0.5)
15
 
16
 
17
  #image to text