Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
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
|