Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
from PIL import Image
|
5 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
6 |
from io import BytesIO
|
7 |
-
import replicate
|
8 |
from llama_index.llms.palm import PaLM
|
9 |
from llama_index import ServiceContext, VectorStoreIndex, Document
|
10 |
from llama_index.memory import ChatMemoryBuffer
|
@@ -158,5 +158,5 @@ if user_input:
|
|
158 |
|
159 |
|
160 |
# Set Replicate and Google API keys
|
161 |
-
os.environ['REPLICATE_API_TOKEN'] = st.secrets['REPLICATE_API_TOKEN']
|
162 |
os.environ["GOOGLE_API_KEY"] = st.secrets['GOOGLE_API_KEY']
|
|
|
4 |
from PIL import Image
|
5 |
from transformers import AutoProcessor, AutoModelForVision2Seq
|
6 |
from io import BytesIO
|
7 |
+
#import replicate
|
8 |
from llama_index.llms.palm import PaLM
|
9 |
from llama_index import ServiceContext, VectorStoreIndex, Document
|
10 |
from llama_index.memory import ChatMemoryBuffer
|
|
|
158 |
|
159 |
|
160 |
# Set Replicate and Google API keys
|
161 |
+
#os.environ['REPLICATE_API_TOKEN'] = st.secrets['REPLICATE_API_TOKEN']
|
162 |
os.environ["GOOGLE_API_KEY"] = st.secrets['GOOGLE_API_KEY']
|