architojha commited on
Commit
cdf0dee
1 Parent(s): 7694ecc

env file changes

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -9
  2. routers/Query/query.py +1 -1
Dockerfile CHANGED
@@ -1,13 +1,17 @@
1
- FROM python:3.9
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
5
- ENV PATH="/home/user/.local/bin:$PATH"
 
 
 
 
6
 
7
- WORKDIR /app
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
- COPY --chown=user . /app
13
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.9
2
 
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+ ENV GROQ_API_KEY=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
7
+ ENV NEO4J_USERNAME=neo4j
8
+ ENV NEO4J_PASSWORD=tYteIJBUYXbdgwSxKqZXWZ87b2XChS7wfB2Ijt7LLDs
9
+ ENV NEO4J_URI=neo4j+s://2e177e83.databases.neo4j.io
10
 
11
+ WORKDIR /app
12
 
13
+ COPY --chown=user ./requirements.txt requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
+ COPY --chown=user . /app
17
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
routers/Query/query.py CHANGED
@@ -13,7 +13,7 @@ global rag
13
  def instantiate_dependencies():
14
 
15
  embedding_model = HuggingFaceEmbeddings(model_name = 'NeuML/pubmedbert-base-embeddings')
16
- llm = ChatGroq(groq_api_key=os.getenv('groq_api'), model_name='gemma2-9b-it')
17
 
18
  graph = Neo4jGraph(
19
  url = os.getenv('NEO4J_URI'),
 
13
  def instantiate_dependencies():
14
 
15
  embedding_model = HuggingFaceEmbeddings(model_name = 'NeuML/pubmedbert-base-embeddings')
16
+ llm = ChatGroq(groq_api_key=os.getenv('GROQ_API_KEY'), model_name='gemma2-9b-it')
17
 
18
  graph = Neo4jGraph(
19
  url = os.getenv('NEO4J_URI'),