Spaces:
Sleeping
Sleeping
Commit
·
dfd45eb
1
Parent(s):
ff8066c
update
Browse files- Dockerfile +2 -0
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -14,6 +14,8 @@ COPY .env ./
|
|
| 14 |
COPY app.py ./
|
| 15 |
COPY faiss_index/ ./faiss_index/
|
| 16 |
|
|
|
|
|
|
|
| 17 |
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
|
|
|
| 14 |
COPY app.py ./
|
| 15 |
COPY faiss_index/ ./faiss_index/
|
| 16 |
|
| 17 |
+
RUN mkdir -p /app/.streamlit
|
| 18 |
+
ENV STREAMLIT_HOME=/app/.streamlit
|
| 19 |
|
| 20 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
app.py
CHANGED
|
@@ -14,7 +14,7 @@ genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
|
| 14 |
@st.cache_resource
|
| 15 |
def load_models_and_embeddings():
|
| 16 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 17 |
-
conversational_model = ChatGoogleGenerativeAI(model="gemini-2.5-
|
| 18 |
return embeddings, conversational_model
|
| 19 |
|
| 20 |
def get_conversational_chain(conversational_model):
|
|
|
|
| 14 |
@st.cache_resource
|
| 15 |
def load_models_and_embeddings():
|
| 16 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
| 17 |
+
conversational_model = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0.7)
|
| 18 |
return embeddings, conversational_model
|
| 19 |
|
| 20 |
def get_conversational_chain(conversational_model):
|