Skip to content

Commit a920536

Browse files
committed
Updated Requirements VertexAI
1 parent 5d8b80f commit a920536

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ streamlit
22
streamlit_ace
33
google-auth
44
google-auth-oauthlib
5+
google-cloud-aiplatform
56
langchain
67
openai
78
python-dotenv

script.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"""
1313

1414
# Install dependencies
15-
import base64
1615
import os
17-
import random
1816
import streamlit as st
1917
from libs.vertexai_langchain import VertexAILangChain
2018
from libs.general_utils import GeneralUtils
@@ -375,7 +373,7 @@ def display_code_editor(font_size, tab_size, theme, keybinding, show_gutter, sho
375373
elif st.session_state.generated_code and st.session_state.compiler_mode == "Online":
376374
st.components.v1.html(st.session_state.output,width=720, height=800, scrolling=True)
377375

378-
@st.cache_data(ttl=300) # Cache for 5 minutes
376+
@st.cache_data(ttl=1) # Cache for 5 minutes
379377
def save_uploaded_file(uploadedfile):
380378
try:
381379
# Check if tempDir exists, if not, create it

0 commit comments

Comments
 (0)