Spaces:
Sleeping
Sleeping
Commit
·
9bea9d1
1
Parent(s):
3732890
Using bat file
Browse files- .env +1 -1
- Dockerfile +1 -1
- app.py +1 -1
- command.txt +0 -7
.env
CHANGED
@@ -1 +1 @@
|
|
1 |
-
GROQ_API_KEY=
|
|
|
1 |
+
GROQ_API_KEY=gsk_I8f2KAiXaThmX9T9LkTUWGdyb3FY9GRYuuMrw36GmZxsLGU8Coh
|
Dockerfile
CHANGED
@@ -19,4 +19,4 @@ ENV HOME=/home/user \
|
|
19 |
WORKDIR $HOME/app
|
20 |
|
21 |
# Start Qdrant and the application
|
22 |
-
CMD ["
|
|
|
19 |
WORKDIR $HOME/app
|
20 |
|
21 |
# Start Qdrant and the application
|
22 |
+
CMD ["docker pull qdrant/qdrant", "sleep 5", "docker run -p 6333:6333 qdrant/qdrant", "sleep 5", "python3 ingest.py", "sleep 5", "uvicorn app:app --host 0.0.0.0 --port 7860"]
|
app.py
CHANGED
@@ -33,7 +33,7 @@ api_key = os.environ.get("GROQ_API_KEY")
|
|
33 |
|
34 |
llm = ChatGroq(
|
35 |
model="mixtral-8x7b-32768",
|
36 |
-
api_key=
|
37 |
)
|
38 |
|
39 |
|
|
|
33 |
|
34 |
llm = ChatGroq(
|
35 |
model="mixtral-8x7b-32768",
|
36 |
+
api_key=api_key,
|
37 |
)
|
38 |
|
39 |
|
command.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
docker pull qdrant/qdrant
|
2 |
-
sleep 5
|
3 |
-
docker run -p 6333:6333 qdrant/qdrant
|
4 |
-
sleep 5
|
5 |
-
python3 ingest.py
|
6 |
-
sleep 5
|
7 |
-
uvicorn app:app --host 0.0.0.0 --port 7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|